Outbox Pattern: Reliably Save State & Publish Events
What’s the Outbox Pattern? A reliable way of saving state to your database and publishing a message/event to a message broker. Why do you need it? When you get into messaging, you will often find code that needs to save state to your database, and then publish a message/event to a message broker. Unfortunately, because they are two different resources, you need a distributed transaction to make these atomic. There is another option to use the Outbox Pattern which does not require a distributed transaction and most messaging libraries support it. YouTube Check out my YouTube channel where I post… Read More »Outbox Pattern: Reliably Save State & Publish Events