~/talk

PostgreSQL as a distributed computing platform

github:marcoslot
slides:none on file

Argues PostgreSQL can act as a distributed platform and shows a working prototype: a 4-node Citus cluster with producers writing to a distributed events table, consumers claiming leases per shard via a probabilistic algorithm, and consumption driven by logical decoding via replication slots using DB link RPC. Key tools: Citus, dblink, pg_cron, logical decoding functions; core logic is two PL/pgSQL routines (obtain_leases and pull_events) of about seven SQL statements each, total prototype ≈300 lines. System achieves scaled consumers (32 vs 16 leases) and transactional exactly‑once delivery.

AI-written summary · about

  1. 0:00Start
  2. 0:50Small data architecture
  3. 7:12Distributed system in progress
  4. 13:49Sharding strategy
  5. 15:05Consumer leases
  6. 20:11Consumers
  7. 22:18Consuming events
  8. 25:59Consumer loop
  9. 26:40Failure handling
~/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.