Reliably Save State & Publish Events (Outbox Pattern)

Описание к видео Reliably Save State & Publish Events (Outbox Pattern)

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 an 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.

🔔 Subscribe:    / @codeopinion  

💥 Join this channel to get access to source code & demos!
   / @codeopinion  

🔥 Don't have the JOIN button? Support me on Patreon!
  / codeopinion  

📝 Blog: https://codeopinion.com
👋 Twitter:   / codeopinion  
✨ LinkedIn:   / dcomartin  

0:00 Distributed Transaction
2:21 Outbox Pattern
3:53 Code Example
5:36 Demo
7:39 Publishing At Least Once

#softwarearchitecture #microservices #messagequeue

Комментарии

Информация по комментариям в разработке