Mohamed Mansor’s Post

View profile for Mohamed Mansor, graphic

Senior Backend Engineer - Founding Team @ Munify.ai | Connecting World's Financial Borders

Awesome well well-detailed article about Transactional outbox pattern from Krzysztof Atłasik. 1. instead of directly making requests, we just save the message as a row to the new table. Doing an INSERT into the message outbox table is an operation that can be a part of a regular database transaction. If the transaction fails or is rolled back, no message will persist in the outbox. 2. create a background worker process that, in scheduled intervals, will be polling data from the outbox table. If the process finds a row containing an unsent message, it now needs to publish it and mark it as sent. If delivery fails for any reason, the worker can retry the delivery in the next round. https://lnkd.in/dJNJ-6aa

Microservices 101: Transactional Outbox and Inbox

Microservices 101: Transactional Outbox and Inbox

softwaremill.com

To view or add a comment, sign in

Explore topics