Skip to content

Glossary: Microservices

two-phase commit

Also written: 2PC

A protocol for transactions across databases: a coordinator asks all to get ready and lock rows, then tells them to commit. Microservices avoid it because it's slow and can leave rows locked.

Where the book teaches it

Related terms

sagatransaction