← Back
Milan Jovanovic November 4, 2025 14m

How to Stream Postgres WAL Changes Into .NET with Npgsql (Logical Replication & CDC)

Summary

The video explores Change Data Capture (CDC) in Postgres using .NET, demonstrating how to set up a CDC listener that streams events from the write-ahead log to capture database changes. The technical walkthrough covers configuring Postgres logical replication, creating a publication and replication slot, and using the Npgsql library to react to database insert, update, and delete events in a .NET application. The practical takeaway is how developers can implement real-time data synchronization and caching mechanisms by leveraging Postgres's replication capabilities and .NET technologies.

View original episode ↗