Scaling Sidekiq, Managing Multi Tenancy
summary
PassEntry splits timebound work from bulk messaging, moves bulk jobs into tiny auto-scaling Sidekiq pools, and evaluates three concrete isolation strategies: per-client queues (predictable but wasteful), shortest-queue routing (routes batches to the least-loaded pool), and shuffle sharding (assigns each client a random subset of queues so collision risk becomes 1/number_of_shards). A real incident — a single 400,000-message campaign — drives the design choices; queues scale up aggressively, scale down in lockstep, and shuffle sharding narrows blast radius while keeping shared cost.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:39About the speaker
- 4:22Workload isolation strategies
- 5:26Business growth stages
- 7:13Original Sidekiq setup
- 7:59Fan pass bulk messaging issue
- 9:47Decoupling operations
- 10:54Per-client sharding limits
- 12:43Shortest queue sharding
- 15:10Shuffle sharding concept
- 16:39Shuffle sharding in Sidekiq
- 18:06Summary and resources
