distributed transaction

A single transaction that spans several separate systems and commits in all of them or none.

In more detail

It needs a coordination protocol such as two-phase commit, which is slow and not supported by every system. Most modern systems avoid them and use patterns such as the transactional outbox instead.

Example

A database and Kafka do not share one, which is why the outbox pattern exists.

Related terms

Taught in

References