Queues, Logs and Streaming
A message queue sits between two services so the sender does not wait for the receiver. A log keeps messages in order so many readers can read them, even again later. Interviewers ask about both when a design has bursts of work, background jobs or events. They ask follow-up questions about ordering, duplicates and what happens when the readers fall behind.
After this section you can choose between a queue and a log, explain at-most-once, at-least-once and exactly-once delivery, make a consumer safe against duplicates, and reason about a backlog.
Topics in this section
- Why put a queue between services
- Queue against log
- Partitions, keys and ordering
- Delivery semantics
- Idempotent consumers
- Backlog and back pressure
- Retention and replay