Internally, NuoDB uses the two-phase commit protocol to manage durability of user data. NuoDB also supports the X/Open XA protocol for synchronizing global transactions across multiple data stores. XA is also sometimes referred to as two-phase commit. The fundamental principles in both protocols are similar, but serve different purposes. Let us explore the difference between these two protocols.
A Single Transaction Across Two Resources
Let us explore a simple use case. A simple application takes messages from one data source (outgoing_messages) and writes them to a new data source