A comprehensive guide to message queues in the context of system design interviews, presented by a former Meta staff engineer. Covers the core motivation for queues using a photo-upload example, then explains key mechanics: acknowledgements, delivery guarantees (at-least-once, at-most-once, exactly-once), idempotency, and when to use queues. Deep dives include partitioning and partition key selection, consumer groups, back pressure, poisoned messages and dead letter queues, and durability via replication. Compares Kafka, AWS SQS, and RabbitMQ as technology choices, with Kafka recommended as the interview default.

26m watch time

Sort: