~/talk

Distributed SQL Transactions

Talkat DevConf.CZ 2023 · 2023-06-16..06-18· [databases, distributed-systems]
links:none on file
slides:none on file

Prototype implements distributed transactions with Python + plain PostgreSQL, using a two‑phase commit and prepared transactions to move money across sharded accounts. Demo code shows a piggy‑bank example on two workers, points out 6 TB production data and a target of ~50–100x growth, and uses replication tools like Patroni and the Citus extension as real options. Coordinator persists transaction state; failures leave prepared locks and require recovery logic, so the prototype works but exposes long locks and coordinator durability trade‑offs.

AI-written summary · about

  1. 0:00Introduction
  2. 3:12Why distributed databases and Cytus
  3. 7:35Handling server failures with replication
  4. 9:01CAP theorem and replication trade-offs
  5. 12:15Building a distributed piggy bank
  6. 15:46Two-phase commit for distributed transactions
  7. 18:16Transaction locks and consistency challenges
  8. 20:46Sharding and replication questions
  9. 24:12Consistency trade-offs in distributed systems
  10. 27:04Role of the coordinator in transactions
  11. 29:55Maintainability and Cytus limitations
  12. 33:39Visibility of prepared transactions
  13. 34:41Demo and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.