https://microservices.io/patterns/data/transactional-outbox.html
The service sends the message to first store the message in the database as part of the transaction that updates the business entities, the message relay then sends the messages to somewhere.
The service sends the message to first store the message in the database as part of the transaction that updates the business entities, the message relay then sends the messages to somewhere.