Databases · Senior · Question 66 of 75

An order flow spans the orders, payments and shipping services, each with its own database. How do you keep them consistent without distributed transactions?

Explanation

Two-phase commit couples services and blocks when the coordinator fails. Sagas accept temporary inconsistency and need idempotent, retryable steps.

Further reading

Problem with a question

Databases · Senior · question 66

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz