Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 2.04 KB

README.md

File metadata and controls

42 lines (31 loc) · 2.04 KB

Postgres Change Data Capture

Postgres CDC using Debezium Kafka Connect as events

1. Local

  • cd docker
  • set the correct env var using .env.example
  • docker compose up -d

2. Deployment

2.1 Dev

  • Kafka Cluster
  • Postgres Database

2.1.1 Kafka Topics

Topic Name Topic Partition Topic CleanUp Policy Topic Retention Period
dz.configs compact delete 7 days
dz.offsets compact delete 7 days
dz.status compact delete 7 days

2.1.2 Table Connector Configs

  • Kafka Topics
  • Database Replication Slots
Table Name EH Name EH Partition EH CleanUp Policy EH Retention Period DB Slot Name DB Publication Name
.<table_name> dz.<schema>.<table_name> 5 delete 7 days <table_name>_dbz <table_name>_connection_dbz

2.1.3 Kafka Connect

3. Debezium

3.1 Custom Debezium Image

Misc