Design distributed transactions protocol
GoogleSoftware Engineer · Technical ScreenLast updated
This question evaluates a candidate's understanding of distributed transactions, coordination protocols, fault tolerance, consistency, and reliability across microservices and databases.
Design a distributed transactions protocol to coordinate updates across multiple services or databases. Compare two-phase commit, three-phase commit, and Saga patterns; specify message flows, failure handling, idempotency, timeouts, and exactly-once versus at-least-once guarantees.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.