Invention Grant
- Patent Title: Decentralized two-phase commit
-
Application No.: US18239647Application Date: 2023-08-29
-
Publication No.: US12298965B2Publication Date: 2025-05-13
- Inventor: Ovais Ahmad Khan , David Andrew Killian , James Daniel Baird , Tittu Jose , Arunachalam Thirupathi
- Applicant: Snap Inc.
- Applicant Address: US CA Santa Monica
- Assignee: Snap Inc.
- Current Assignee: Snap Inc.
- Current Assignee Address: US CA Santa Monica
- Agency: Schwegman Lundberg & Woessner, P.A.
- Main IPC: G06F16/20
- IPC: G06F16/20 ; G06F16/23 ; G06F16/27 ; H04L67/1097

Abstract:
A decentralized two-phase commit in a datastore or database includes determining pre-validating a transaction, writing first metadata to a leader partition, the first metadata including a state indicating preparing and mutations of the transaction, and writing second metadata of a follower partition to indicate the follower partition is locked by the leader partition. The decentralized two-phase commit further includes updating the state of the first metadata to indicate committed and performing the transaction on the leader partition, performing the transaction on the follower partition and unlocking the follower partition, and updating the first metadata to remove the mutations of the transaction and updating the state of the first metadata to indicate the transaction is completed. The decentralized two-phase commit may further include selecting a leader partition key and updating the state of the first metadata to indicate committed unapplied.
Public/Granted literature
- US20230401196A1 DECENTRALIZED TWO-PHASE COMMIT Public/Granted day:2023-12-14
Information query