
Tech
DAY 3 - SAGA Design Pattern
To manage distributed transactions across multiple microservices.
It divides a large transaction into a series of smaller local transactions.
Executed independently.
Each service performs its own transaction via events or commands.
If one transaction fails --> compensating actions are executed to undo previously completed operations.
Distributed Transaction
Multiple db or system working together to complete a single task.
If any step fails --> the entire trans...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to