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.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

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

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