01Chapter 1: Why use a message queueThis chapter assumes you can read basic Python and know how HTTP request/response works. You should also know that processes and threads run independently, and that networked services can fail or respond slowly.2 min read
02Chapter 2: Producers and consumersThis chapter assumes you can read basic Python, understand HTTP request/response, and know that threads run concurrently. It covers the two roles at the ends of every messaging system and the shape of the code on each side.2 min read
03Chapter 3: The broker and its queuesThis chapter assumes you know what producers and consumers are, and that you can run Python and a local RabbitMQ broker. The examples use RabbitMQ, but the ideas apply to most brokers.2 min read
04Chapter 4: Acknowledging messagesThis chapter assumes you know what a producer, a consumer, and a broker are, and that you can read basic Python. It covers how a consumer tells the broker that a message is finished, and what goes wrong when it does that at the wrong time.2 min read
05Chapter 5: At-most-once, at-least-once, and exactly-once deliveryThis chapter assumes you know what a producer, a broker, a queue, and a consumer are. It also assumes you know that a consumer sends an acknowledgement (ack) after handling a message. A delivery guarantee describes how many times the consumer's code runs for each message the producer sends, when som3 min read
06Chapter 6: Writing idempotent consumersThis chapter assumes you know what a producer, broker, queue, and consumer are. It also assumes you know that a consumer acknowledges a message after processing it, and that at-least-once delivery means duplicates can happen.3 min read
07Chapter 7: Retries and dead-letter queuesThis chapter assumes you know how acknowledgements work, that delivery is usually at-least-once, and that consumers should be idempotent. It covers what to do when a message fails.3 min read
08Chapter 8: Scaling with competing consumersThis chapter assumes you know what a producer, a broker, a queue, and an acknowledgement are from the earlier chapters. The examples use Python and RabbitMQ with the pika library.3 min read
09Chapter 9: Backpressure and prefetch limitsThis chapter assumes you know how producers, brokers, queues, and acknowledgements work, and that you have run competing consumers on one queue. It covers what happens when messages arrive faster than consumers can handle them, and how the prefetch limit controls the flow.2 min read
10Chapter 10: Ordering guarantees and their limitsThis chapter assumes you know what producers, consumers, brokers, and acknowledgements are, and that you have seen competing consumers pull from one queue. Here you will see when a queue keeps messages in order, when it stops doing so, and what to do about it.2 min read
11Chapter 11: Durability and persistenceThis chapter assumes you know what a broker, queue, producer, and acknowledgement are, and the difference between at-most-once and at-least-once delivery. It covers what must be configured so a message survives a broker crash or restart.2 min read
12Chapter 12: Publish/subscribe and routingThis chapter assumes you know what a producer, a consumer, a broker and a queue are. It also assumes you know how acknowledgements work. If not, review those chapters first.2 min read
13Chapter 13: Log-based brokers and partitionsThis chapter assumes you know producers, consumers, acknowledgements, competing consumers, and the ordering limits of a work queue. It explains how a log-based broker differs from a queue broker and what partitions do.3 min read
14Chapter 14: The transactional outbox patternThis chapter assumes you know acknowledgements, at-least-once delivery, and idempotent consumers from the earlier chapters. You should also be comfortable with basic SQL transactions.2 min read
15Chapter 15: Monitoring queue healthThis chapter assumes you know how producers, consumers, acknowledgements, retries, and dead-letter queues work. It covers which numbers show that a queue is healthy and which show that it is not.2 min read
16Chapter 16: Choosing a brokerThis chapter assumes you know producers, consumers, acknowledgements, delivery guarantees, idempotent consumers, ordering, and the difference between work queues and log-based brokers. Here you use that model to pick a broker for a real system.3 min read