Skip to content
All updates
Insights

Scaling to 10k Concurrent Connections

How we used Redis & Celery to remove connection bottlenecks and keep real-time systems available under load.

Engineering Core

When managing live real-time applications such as high-concurrency seat locking and real-time transit telemetry, connection spikes can overwhelm standard relational databases.

Architecture Highlights:

  1. Redis Pub/Sub & Memory Locks: Ephemeral state caching and atomic distributed mutexes.
  2. Celery Worker Clustering: Offloading async calculations, email dispatches, and push notifications to dedicated background workers.
  3. Connection Pooling: Utilizing PgBouncer to keep PostgreSQL memory footprints predictable under intense spikes.
  • Redis
  • Celery
  • Distributed Systems
  • Performance