Queues and Logs: Message Delivery You Can Reason About
Asynchronous messaging decouples producers from consumers, absorbs traffic spikes and lets slow work happen outside the request. Interviewers expect you to choose between a work queue and an event log, and to explain delivery guarantees, ordering, back-pressure and failure handling.
In this lesson
- Learning objectives
- Queue or log?
- Delivery semantics
- Ordering and parallelism
- Failure handling
- Example: image uploads
- Self-check
Questions covered
- When would you use a queue versus Kafka?
- How do you get exactly-once effects with at-least-once delivery?
This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.