The Outbox Pattern

Last time in the NestJS Production Guide, I covered Event-Driven Architecture, and closed on a loose end: publishing an event after a database write isn't atomic unless you make it so.