advancedDistributed Transactions & Saga

What is the Two-Phase Commit (2PC) protocol and why is it not recommended for microservices?

Tests whether you know 2PC's blocking coordinator model doesn't scale and creates a single point of failure across services.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to When would you use the Saga pattern, and how would you handle a compensation transaction that itself fails?← Back to all Spring Boot & Microservices questions