transactional outbox

Saving an event into an outbox table in the same database transaction as the business change, then having a separate worker publish it.

In more detail

Because the order row and its outbox row commit or roll back together, an event exists if and only if the change happened. A relay worker polls the outbox and publishes each event to the broker, retrying until it succeeds, which gives at-least-once delivery.

Related terms

Taught in

References