A billing service reads a payment from the orders topic, writes a charge record to the invoices topic and commits the offset. These are separate steps, and the process can crash between any two of them. If it crashes after the write but before the commit, then after a restart it charges the same payment again.
In this lesson
- What a transaction does
- transactional.id and the coordinator
- A transaction in franz-go
- Zombies and the epoch
- Read, process, write
- What stays outside
- Common mistake
- Key points