Scaling Logical Replication: Parallel Apply and Centralized Decoding
summary
Parallel apply reduces subscriber catch‑up time by roughly 60% reduction in the benchmark (from ~500–600s to ~200s) by launching per‑transaction worker processes and preserving ordering via a leader that sends dependency messages based on a small KVS of relation+key hashes. On the publisher side a decode once serve many design introduces a centralized decoder process that writes decoded transactions to shared storage for WAL senders to filter; design notes on snapshot handoff, LSN offset mapping, checkpointing and recovery exist but a full proof‑of‑concept is not yet shipped.
AI-written summary · about
chapters (16)
- 0:00Introduction to logical replication
- 1:53Why logical replication is slower
- 4:23Subscriber side bottleneck
- 6:56Parallel apply architecture
- 9:53Dependency tracking explained
- 13:32KBS dependency tracking
- 18:17Parallel apply performance
- 20:03Out of order commits
- 22:29Progress tracking challenges
- 27:51Crash recovery with out of order
- 31:05Publisher side bottleneck
- 32:31Centralized decoding idea
- 34:16Centralized decoder design
- 37:30System catalog challenges
- 43:57Summary and future work
- 45:22Q&A session
