Transactional outbox

A write and its event land in one transaction, and a relay publishes it: the copies stop diverging when a publish fails.

Prerequisites#

Research these first: Message queues.

Engineering terms#