Topic: Databases
- Do you need an outbox?
Use an outbox when a committed change without its event is a correctness problem and the database must stay authoritative.
- Does the outbox pattern prevent lost Kafka events?
A naive dual write lost its Kafka event after the database committed; the outbox delivered at the same crash point but duplicated an event when the relay died after Kafka acknowledged it.
- The outbox pattern: what it actually guarantees
An outbox commits the business change and the intent to publish together, trading a window for lost events for the possibility of duplicate publication.
- Can a 'no duplicates' check pass while the stored decision is wrong?
Every tested case left one row, but only an epoch-checked write preserved the newer decision in both write orders.
- Does Kafka replay a record after your database already committed?
Kafka redelivered the same record after a post-commit crash, but a unique key prevented a second database row.
- When is a performance problem an architecture signal?
A slow database operation can reveal that set-based work belongs in the database rather than in an application loop.