Playbooks

Outbox before dual writes

If a write has to land in two places, put it in one place and let a reader fan it out.

Problem
A service must update its database and publish an event, and sometimes only one happens.
Context
Any service with a transactional store and a message broker. Especially Kafka.

Problem

Context

Approach

Tradeoffs

When this stops working