Chat App: Fanout-on-Write Storm
- Category
- Messaging & Streaming
- Difficulty
- Intermediate
- Est. time
- ~12 min
A large-group message surge overwhelms a synchronous fanout path, and raising batch size alone makes sender-facing latency worse, not better.
Live, operational scenarios. No multiple choice. No free text.
Loading…
21 scenarios
A large-group message surge overwhelms a synchronous fanout path, and raising batch size alone makes sender-facing latency worse, not better.
A sustained high-priority burst starves low-priority jobs under fairness-blind dispatch, and scaling worker count looks like progress without fixing the undersized reservation for low-priority work.
A producer traffic spike and a batch of slow records push a Kafka consumer group into a critical backlog.
Part-upload failures under load leave multipart uploads half-finished, and neither a full restart nor an idempotency key actually reconciles which parts already landed.
A celebrity post overwhelms a fanout-on-write path, and overcorrecting the fanout-mode threshold trades the write-storm for an equally bad read-storm.
A legitimate traffic burst overwhelms a token bucket sized for average load, and raising the refill rate alone never absorbs the burst itself.
A demand spike exposes a geo-index whose grid cell size and query fan-out budget were never sized together, and narrowing the cell alone collapses match success.
An in-place index rebuild leaves queries reading a partially-rebuilt index, and throttling the rebuild rate only makes the unsafe window longer, not safer.
Abandoned checkout holds tie up real seat inventory, and shortening the hold TTL alone looks like a fix without actually releasing seats any faster.
A viral short link overwhelms a cache-free URL shortener's database, and scaling read replicas looks like progress without fixing the real problem.
A bad configuration push sets the API rate limit far below normal traffic, rejecting legitimate requests immediately.
A cache node fails and its keys redistribute, risking a database overload unless capacity or database protection is restored.
A deploy quietly shrinks the DB connection pool's max size — normal traffic alone is enough to exhaust it.
A new deploy ships a subtle regression; error rates and latency climb on affected endpoints shortly after rollout.
A deploy-introduced memory leak is climbing steadily toward an OOM crash, and the real fix can't ship live.
A recently deployed query path is scanning the entire orders table as traffic climbs, and scaling the API layer alone only makes it worse.
A malformed message loops forever in retry, blocking every healthy message queued behind it.
Naive immediate retries on 429 responses are extending a payment provider's rate-limit penalty window instead of clearing it.
A client service's unbudgeted per-call retries multiply load onto an already-degraded downstream dependency.
An unrelated, seemingly-safe flag flip wakes a long-dormant legacy pricing engine — reverting the flag that triggered it doesn't put it back to sleep.
An external shipping-rate vendor is slow, not down — every checkout request blocks on it until you insulate your own system.