Home icon

Implementing real-time change data capture with Debezium for Amazon Aurora PostgreSQL and Amazon RDS for PostgreSQL

Database Blog



This article provides a comprehensive guide to implementing real-time change data capture (CDC) using Debezium with Amazon Aurora PostgreSQL and Amazon MSK.

  • Debezium monitors PostgreSQL WAL to stream database changes to Kafka topics in real time
  • Solution uses Aurora PostgreSQL logical replication, MSK Connect, and Debezium PostgreSQL connector
  • Enable logical replication via DB cluster parameter group setting rds.logical_replication to 1
  • Create MSK serverless cluster, EC2 instance, and custom Debezium plugin in S3
  • Configure IAM role with permissions for MSK, Secrets Manager, S3, and CloudWatch Logs
  • Create publication on source table and MSK connector with Debezium configuration
  • Test CDC with INSERT, UPDATE, DELETE operations; verify real-time events in Kafka consumer
  • Monitor using CloudWatch metrics for MSK, Aurora, and connector health
  • Common issues: replication slot lag, connector failures, schema evolution, network connectivity
  • Cleanup requires deleting connector, plugin, MSK cluster, database, EC2, IAM resources, secrets, logs, and S3

This solution enables event-driven architectures with low-latency database change streaming for analytics, ML, and LLM applications.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 10
2026
Real-time CDC from Aurora PostgreSQL to Amazon S3 Tables using Debezium and Firehose
May 14
2026
Getting started with Change Data Capture in Amazon Aurora DSQL
May 14
2026
Amazon Aurora DSQL now supports change data capture (Preview)
Jul 15
2025
Amazon RDS Custom for SQL Server now supports change data capture

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.