Practice problems · Topic
Queues & async problems
Covers consumer groups, ordering, retries, dead-letter queues, backpressure.
Queue problems move work off the request path so a burst becomes a backlog you can measure instead of a failure. They test what a worker does with a message when it dies, how long a message stays hidden before another worker takes it, and whether a retry repeats work harmlessly.
Problems that need queues & async
Run 3,000 Jobs Due at Once: Practice
Run a burst of scheduled jobs against a dependency that can only take so many. Practise queues, pacing and retries with jitter on a canvas that runs.
Third-Party API Rate Limits: Practice
Your push provider refuses anything past 500 calls a second. Queue the work, pace workers to the limit, retry safely, and lose nothing when a worker dies.
Retry a Payment Without Charging Twice
A timeout does not say whether the charge happened. Retry it safely with idempotency keys, then test your design against a slow provider and hidden tests.
Transactional Outbox: Practice Problem
Save an order and tell Billing about it, even when the queue or Billing is down. Practise the transactional outbox, relays and harmless repeats.
LLM Provider Failover: Practice Problem
Keep an AI feature up when a model provider fails, with two providers that each fall short of your peak. Practise fallback order and queued work.
Exactly-Once Counts in a Stream: Practice
Count every ad click once through crashes, resends and a full database. Practise stream processing, dedupe keys and saving your place with your totals.
Fan-Out on Write vs Read: Practice
Copying each post to every follower works until one author has millions. Choose fan-out on write, on read or a mix, then run it against a TV chef.
Survive a Retry Storm: Practice Problem
A short timeout and generous retries can turn a five second outage into a long one. Practise timeouts, backoff and limits, then watch the storm.
By GOAT Engineer. Practice problems · Privacy Policy · Contact.