Distributed Transaction Management – 2 & 3PC Interview Notes
What is a Transaction? A transaction is a logical unit of work that either completes entirely or fails completely. It follows the ACID properties to ensure data reliability in database systems. ACID Properties Monolithic vs. Microservices Transactions Monolithic Architecture Microservices Architecture Distributed Transaction Management In a microservices setup, a transaction might span across multiple independent services. There are two broad categories: 1. Synchronous Transaction Management 2. Asynchronous Transaction Management Two-Phase…