System Overview - Two-phase commit (and why to avoid it)
This system demonstrates a two-phase commit protocol coordinating a transaction across multiple microservices to ensure data consistency. The key requirement is atomicity: either all services commit the transaction or none do, preventing partial updates.
However, two-phase commit can cause delays and blocking issues, making it less ideal for scalable microservices architectures.