~/talk

Building Event-Driven Systems with PostgreSQL Logical Replication and Drasi

slides:none on file

Compares three concrete CDC paths: wal2json, Debezium with Kafka, and Drasi (CNCF sandbox) by running the same Locust load and measuring latency, WAL cost, and code size. wal2json and Drasi show ~2–3 ms end‑to‑end latency, Debezium runs ~500 ms due to Kafka hops; wal2json needs one replication slot per consumer, Drasi uses one slot with multiple continuous queries, Debezium uses one slot into Kafka for unlimited consumers. Demo includes config details (wal_level=logical, replication slots), WAL‑growth risk (example: 64 GB in an hour) and mitigations (max_slot_wal_keep_size, monitor pg_replication_slots, drop stalled slots).

AI-written summary · about

  1. 0:00Music & introduction
  2. 0:21Three approaches to event streams
  3. 0:50Problems with polling, triggers, and dual writes
  4. 1:41CDC with WAL: the core idea
  5. 2:16Inside the WAL pipeline explained
  6. 3:05Setting up logical replication in Postgres
  7. 4:07Architecture overview: three CDC paths
  8. 6:01Benchmark setup for fair comparison
  9. 7:52Demo: wal2json low-latency streaming
  10. 11:14Demo: Debezium and Kafka trade-offs
  11. 16:18Demo: Drasi filtering and fan-out
  12. 22:03Comparing latency, cost, and complexity
  13. 24:13Production risks: WAL growth and slots
  14. 25:49Choosing the right CDC approach
~/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.