Principles Of Distributed Database Systems Exercise Solutions ((top)) -
"Not tonight," she whispered, kneading her temples. The exercise was simple in theory: execute a series of atomic transactions that moved virtual currency between accounts while maintaining ACID properties across the network. The solution, the beautiful theoretical proof on her whiteboard, had promised convergence. Reality, as always, had other plans.
The 2PC protocol relies on a coordinator and multiple participants.
Understanding the role of the Coordinator and Participants during the "Voting" and "Decision" phases.
: Always start by identifying the primary key. For vertical, check that every attribute appears at least once. For horizontal, ensure predicates are complete and mutually exclusive. "Not tonight," she whispered, kneading her temples
aborts immediately upon step 3, meaning step 4 never occurs. 4. Distributed Reliability and Consensus Protocols
If a query only needs Name and Salary , you would use a PROJECT operation to split columns rather than rows.
:
Choosing between synchronous (strong consistency) and asynchronous (eventual consistency) replication.
Replacing global relations with their fragments.
You have a replicated data item across 5 sites (S1..S5). A quorum consensus protocol requires R readers and W writers, with R+W > N. Given failures or network partitions, determine if reads/writes succeed. Reality, as always, had other plans
When studying "Principles of Distributed Database Systems," don't just look for the answer. Focus on the : Completeness: No data is lost during fragmentation.
Partition columns to ensure attributes used together are on the same site.
Reliability exercises often focus on what happens when a site or a link fails during a transaction. The 2PC Protocol Steps: : Always start by identifying the primary key