Skip to content

andreim14/beanis-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beanis Examples

Production-ready examples demonstrating Beanis - a Redis ODM for Python with Pydantic integration.

Examples

1. Restaurant Finder (Geo-Spatial Cache)

📁 restaurant-finder/

Build a lightning-fast restaurant finder using:

  • OpenStreetMap for real restaurant data
  • PostgreSQL + PostGIS as source of truth
  • Redis + Beanis as cache layer (90% faster queries)
  • FastAPI REST API

Features:

  • Geo-spatial queries (find nearby restaurants)
  • Cache-first strategy with fallback
  • Real-world data import from OSM
  • Production-ready architecture

Performance: 6ms (cached) vs 76ms (database) - 92% faster

Read the tutorial →


More Examples Coming Soon

  • Real-time Leaderboard: Gaming scores with sorted sets
  • URL Shortener: Click tracking and analytics
  • Session Store: User sessions with TTL
  • Job Queue: Background task processing

Contributing

Have an example idea? Open an issue or PR!

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages