Review cards · 21 cards

Queues

Message queues, pub/sub, delivery guarantees and smoothing load with async work.

Train queues in daily review

Cards

  1. A job needs a 200 MB video. Why not put the file in the queue message? easy Flashcard
  2. Several workers pulling from one queue, so that each message is handled by only one of them, is the _____ pattern. easy Fill in the blank
  3. One message makes the consumer fail every time it is processed. What should happen to it? easy Multiple choice
  4. Users upload files that each need a thumbnail and a document preview. When should the upload request answer? easy Multiple choice
  5. Why put a queue between a bursty producer and a slower consumer? easy Flashcard
  6. An "order placed" event must reach the email service, the analytics service and the warehouse service. Which messaging model fits? easy Multiple choice
  7. Which metric best tells you a worker fleet should scale up? easy Multiple choice
  8. Password-reset emails wait behind a 10-million-message newsletter in the same queue. How do you fix it? easy Flashcard
  9. 3,000 messages arrive per second, and each takes a worker 50 ms to process, one at a time. How many workers keep up? easy Estimate
  10. Your queue delivers at least once. What must every consumer do? medium Flashcard
  11. After an outage, a queue holds 1.8 million messages. Consumers process 2,000 a second, while producers keep adding 1,500 a second. How long until the backlog is gone? medium Estimate
  12. What is backpressure, and why is an unbounded queue not a substitute for it? medium Flashcard
  13. Feeds are built by fan-out on write. A celebrity with 50 million followers posts. What do large feed systems do? medium Multiple choice
  14. A consumer's call to a provider fails. How do you retry it later without blocking the messages behind it? medium Flashcard
  15. In a distributed cron, why should the scheduler only enqueue due runs instead of executing the scripts itself? medium Flashcard
  16. Fan-out on write versus fan-out on read for a feed: what does each cost? medium Flashcard
  17. When does a log like Kafka fit better than a queue like SQS or RabbitMQ? medium Multiple choice
  18. Thumbnails take 50 ms each and document previews 500 ms. Why give each transformation its own worker pool behind the queue? medium Flashcard
  19. Events for each bank account must be processed in order, but the total volume needs hundreds of consumers. What do you do? medium Multiple choice
  20. Why must a new post be stored durably before its fan-out is queued? medium Flashcard
  21. In SQS, a message a consumer has received is hidden from other consumers for the _____. If the consumer does not delete it before that ends, the message becomes visible and is _____. medium Fill in the blank

More topics