2PC vs Sagas (distributed transactions)
In my understanding (not a big user of 2PC since I consider it limiting): Typically, 2PC is for immediate transactions. Typically, Sagas are for long running transactions. Use cases are obvious afterwards: 2PC can allow you to commit the whole transaction in a request or so, spanning this request across systems and networks. Assuming each … Read more