An outbox table is a local database table that holds messages or events for a separate background process to deliver. It helps avoid the risky gap between saving business data and sending a network message. section 12.5.2 section 12.6.1
Write the business data and its event to the outbox in the same ACID transaction. A background process later forwards the message to a broker. If the transaction succeeds, both records are saved; if it fails, neither is. This provides at-least-once delivery without trying to update a database and send a network message at the same time. section 12.6.1
Inventory event
An InventoryService saves its database update and an InventoryDeducted event in the same transaction. A background process then reads the outbox and sends the event to the network, so a crash after the save does not leave the event unpublished. section 12.6.1

