backenddatabasessystem-design
The database commit and message publish are separate events
Anonymous
A database transaction can't usually make a separate message broker publish atomic with its commit. A transactional outbox stores the state change and message intent in one transaction; a separate publisher sends pending records. Delivery can repeat, so consumers still need idempotent handling.
0