Building Event-Driven Systems with PostgreSQL Logical Replication and Drasi | POSETTE 2026

Diaa Radwan explains how to build event-driven architectures directly on PostgreSQL using logical replication and change data capture, and compares three CDC approaches (wal2json, Debezium+Kafka, and Drasi) using live benchmarks for overhead, latency, and implementation complexity.

Overview

The talk focuses on using PostgreSQL logical replication (via the write-ahead log) as the foundation for event streams, instead of relying exclusively on external streaming platforms.

Why CDC via PostgreSQL logical replication

Diaa Radwan frames logical replication as a way to capture database changes in real time and use them as an event stream.

Key problems this approach aims to avoid:

Three CDC approaches compared

The session compares three ways to turn PostgreSQL changes into downstream events:

1) wal2json with custom consumers

2) Debezium with Kafka

3) Drasi with PostgreSQL

Architecture and pipeline walkthrough

The talk includes an explanation of the WAL pipeline and how changes flow from PostgreSQL into each of the three CDC paths.

Benchmarking: latency, overhead, and complexity

Diaa Radwan walks through live benchmarks intended to compare the approaches fairly, including:

During the demos, PostgreSQL CPU and network usage are monitored to show the runtime impact.

Production considerations and risks

The session calls out operational risks and configuration details that matter in production:

Video chapters