PostgreSQL CDC Example
A Rust-based Change Data Capture (CDC) application that streams real-time data changes from PostgreSQL to other databases (MySQL, SQL Server, etc.) using logical replication.
Overview
This project demonstrates how to build a production-ready CDC pipeline using the pg2any_lib
crate. It captures changes from PostgreSQL using logical replication and streams them to destination databases in real-time.
PostgreSQL Streaming logical Replication POC replication_checker_rs
Features
- Real-time streaming from PostgreSQL to multiple database types
- Logical replication with configurable replication slots and publications
- Comprehensive monitoring with Prometheus metrics and health checks
- Docker containerization for easy deployment
- Structured logging with configurable log levels
- Graceful error handling and automatic recovery mechanisms