01Chapter 1: What an event is, and how it differs from a commandThis chapter assumes you can read short Python and JSON snippets. It also assumes you know how HTTP request/response APIs work, and you have a basic idea of what a database transaction is. It helps to know that a distributed system is several programs cooperating over a network.2 min read
02Chapter 2: Producers and consumers: decoupling by publishing factsThis chapter assumes you know basic programming, HTTP request/response APIs, and what a distributed system is. It builds on the previous chapter's distinction between events and commands.2 min read
03Chapter 3: Event brokers and what they do for youThis chapter assumes you know what producers and consumers are, and that you have used HTTP APIs and database transactions. It explains why a broker sits between them and which jobs it takes over.3 min read
04Chapter 4: Topics versus queues: fan-out and competing consumersThis chapter assumes you know what an event, a producer, a consumer and a broker are from the earlier chapters. It covers the two delivery models a broker offers and when to choose each.2 min read
05Chapter 5: Event notification versus event-carried state transferThis chapter assumes you know request/response APIs, basic database transactions, and the producer, consumer and broker roles from earlier chapters. It compares two ways to decide what goes inside an event.2 min read
06Chapter 6: Delivery guarantees: at-most-once, at-least-once, effectively-onceThis chapter assumes you know what a broker, a producer and a consumer are, and that you understand database transactions. It explains what a broker promises about delivering each event, and what that promise means for the code you write.3 min read
07Chapter 7: Writing idempotent consumersThis chapter assumes you know basic programming, HTTP request/response APIs, and database transactions. It also assumes you have read the chapter on delivery guarantees.3 min read
08Chapter 8: Ordering, keys and partitionsThis chapter assumes you know what a broker, a topic and a consumer are, and that delivery is usually at-least-once. It covers how to keep events in the right order when you also want to process them in parallel.3 min read
09Chapter 9: Designing and versioning event schemasThis chapter assumes you know what events, producers, consumers and brokers are, and that delivery is at-least-once. It covers how to shape an event so that it can change over time without breaking the consumers that read it.2 min read
10Chapter 10: Living with eventual consistencyThis chapter assumes you know basic database transactions, request/response APIs, and the publish/subscribe model from earlier chapters. It covers what eventual consistency means for a system built on events, and how to design for it.3 min read
11Chapter 11: Retries, backoff and dead-letter queuesThis chapter assumes you know what a broker is, how at-least-once delivery works, and why consumers should be idempotent. Here you will see what a consumer should do when handling an event fails.2 min read
12Chapter 12: The transactional outbox patternThis chapter assumes you know database transactions, the basics of brokers and topics, and at-least-once delivery. It covers one problem: how to change your database and publish an event without losing either one.2 min read
13Chapter 13: Sagas: coordinating multi-step processesThis chapter assumes you know what events, brokers and idempotent consumers are, and that you understand eventual consistency. It also assumes you know what a local database transaction is.2 min read
14Chapter 14: Event sourcing and CQRS: related but separate ideasThis chapter assumes you know what an event is, how a broker delivers it, and why consumers see data with some delay (eventual consistency). Two patterns often appear next to event-driven systems and get confused with them and with each other: event sourcing and CQRS. Neither requires the other, and3 min read
15Chapter 15: Tracing, monitoring and testing event flowsThis chapter assumes you know what producers, consumers and brokers are. It also assumes you have met at-least-once delivery, idempotent consumers and dead-letter queues from earlier chapters. Here you learn how to see what an event-driven system is doing, and how to test it.3 min read
16Chapter 16: Trade-offs: when not to use event-driven architectureThis chapter assumes you know what events, brokers, topics and queues are. It also assumes you have met at-least-once delivery, idempotent consumers and eventual consistency from earlier chapters. Here you will weigh what the style costs against what it gives you.3 min read