dual write

Writing the same change to two separate systems, such as a database and a message broker, from application code with no shared transaction.

In more detail

One write can succeed while the other fails: the record is saved but no event is sent, or an event is sent for a change that was rolled back. The two systems then disagree, sometimes called split brain. The transactional outbox pattern removes the second write from the request path.

Related terms

Taught in

References