PrepCity

Message queue

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 5 pages · about 4 min

Message queue

Hand slow work to a queue: the caller gets an answer at once, consumers work through the backlog, and a crashed consumer’s message comes back.

Words you’ll learn

  • API
  • Millisecond
  • Worker
  • Request
  • Queue
  • Polling
  • Database
  • Commit
  • Backlog
  • At-least-once delivery

Page by page