02Chapter 2: Producers and consumers: decoupling by publishing factsThis chapter assumes you can write basic code in any language and know how HTTP request/response APIs work. It also assumes you know what a database transaction is. The previous chapter separated events from commands. Here we look at the two roles that make event-driven systems work: the producer th6 min read
03Chapter 3: Event brokers and what they do for youThis chapter assumes you know what an event is and how producers and consumers relate. It also assumes you are comfortable with HTTP APIs and database transactions. It covers what a broker is, which jobs it takes over, how brokers store messages, and the errors teams commonly make when adopting one.5 min read
04Chapter 4: Topics versus queues: fan-out and competing consumersThis chapter assumes you know what an event is, what producers and consumers do, and what a broker provides. You should also be comfortable with HTTP request/response APIs and basic database transactions. The chapter covers the two delivery models most brokers offer, publish/subscribe topics and wor5 min read
05Chapter 5: Event notification versus event-carried state transferThis chapter assumes you know what an event, a producer, a consumer and a broker are from the earlier chapters. It also assumes you are comfortable with HTTP APIs and basic database reads and writes. The question here is how much data an event should carry, because that choice shapes coupling, avail5 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 the difference between a topic and a queue. It also assumes you understand database transactions. By the end you should be able to say what each delivery guarantee promises, what it costs, and which one to build on.6 min read
07Chapter 7: Writing idempotent consumersThis chapter assumes you know what a broker, a topic and a consumer are, and that you have read the previous chapter on delivery guarantees. You should be comfortable with basic SQL and database transactions.6 min read
09Chapter 9: Designing and versioning event schemasThis chapter assumes you know what events, producers, consumers and brokers are, and that you can read JSON and basic Python. It covers how to shape an event so many consumers can use it, and how to change that shape later without breaking them.6 min read
10Chapter 10: Living with eventual consistencyThis chapter assumes you know what events, producers, consumers and brokers are, and that you understand local database transactions. It builds on the earlier chapters on delivery guarantees and idempotent consumers.6 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. It covers what a consumer should do when handling an event fails: how to retry, how to space the retries out, and where to put events that never succeed.7 min read
12Chapter 12: The transactional outbox patternThis chapter assumes you know how database transactions work (atomic commit and rollback). It also assumes you know the basics of brokers, at-least-once delivery, and idempotent consumers from earlier chapters.5 min read
13Chapter 13: Sagas: coordinating multi-step processesThis chapter assumes you know the earlier material: events, brokers, at-least-once delivery, idempotent consumers, and eventual consistency. It also assumes you know what a local database transaction guarantees.5 min read
14Chapter 14: Event sourcing and CQRS: related but separate ideasThis chapter assumes you know the earlier chapters: what an event is, how a broker delivers it, why consumers must be idempotent, and what eventual consistency means. You should also be comfortable with database transactions and basic Python.6 min read
15Chapter 15: Tracing, monitoring and testing event flowsThis chapter assumes you know what producers, consumers and brokers are. It also assumes you know at-least-once delivery, idempotent consumers, and dead-letter queues (DLQs) from earlier chapters. Here the focus is on seeing what an event-driven system is doing, and on checking that it does what you7 min read
16Chapter 16: Trade-offs: when not to use event-driven architectureThis chapter assumes you know the earlier material: events versus commands, brokers, topics and queues, delivery guarantees, idempotent consumers, eventual consistency, dead-letter queues, the outbox pattern, and sagas. It does not teach them again. It asks whether you should pay for them at all.6 min read