System Design: Handle Distributed Transactions | Two-Phase Commit (2PC), Three-Phase Commit (3PC), SAGA Pattern

 

                                        








Synchronous 






Challenge is that if the phase 2 (commit) is failed then consumer is blocked

Synchronous 




SAGA (Saga of Transaction)
Asynchronous 




























Comments

Popular posts from this blog

Microservice Pattern: SAGA

Microservice Pattern: Database per service Context

SQL vs NoSQL | Difference between SQL & NoSQL | SQL Vs NoSQL Tutorial | SQL, NoSQL system design