Writing to your DB and publishing to a broker is a dual write, and one of them will eventually fail. The Transactional Outbox saves the event in the same transaction as the state change; a relay publishes it later, at-least-once, so keep consumers idempotent. #OutboxPattern #EDA
microservices.ioMicroservices Pattern: Pattern: Transactional outboxFirst, write the message/event to a database OUTBOX table as part of the transaction that updates business objects, and then publish it to a message broker.
