Atomic Transactions with Polled Outbox
One of the drawbacks of the microservices architecture is the difficulty to implement atomic transactions. While this limitation can be overcome by using patterns such as Saga, there are certain situations where we can use an alternative approach to solve this problem without having to implement the rather complicated Saga pattern.
Let’s consider a scenario where we need to dispatch an event when a user verifies their email after signing up. The event will then be consumed by other services for reporting, updating the customer profile on a CRM system and sending a customer a welcome email.
Top comments (0)