Skip to content

Commit

Permalink
Expanded two phase commit entry.
Browse files Browse the repository at this point in the history
Signed-off-by: Dj Walker-Morgan <[email protected]>
  • Loading branch information
djw-m committed Oct 6, 2023
1 parent 64f5521 commit 99717e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion product_docs/docs/pgd/5/terminology.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ A PGD cluster is based around bidirectional replication, but in some use cases s

#### Two-phase commit (2PC)

A multi-step process for achieving consistency across multiple database nodes.
A multi-step process for achieving consistency across multiple database nodes. A first phase sees a transaction prepared on an originating node and sent to all participating nodes. Each participating node validates that it can apply the transaction and
signals its readiness to the originating node. This is the pre-commit or prepare phase. In the second phase, if all the participating nodes signal they are ready, the originating node proceeds to committing the transaction and signal the participating nodes to commit too. This is the commit phase. If, in the pre-commit phase, any node signals it is not ready, the entire transaction is aborted. It's this process that ensures all nodes get the same changes.

#### Vertical scaling or scale up

Expand Down

0 comments on commit 99717e8

Please sign in to comment.