Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cdc Streaming?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-cdc-streaming)
---
description: Stream database changes reliably using transactional outbox tables, Debezium CDC, schema evolution, and idempotent sinks
profile: standard
tags: data, kafka, database, distributed-systems
---
# CDC streaming
Use when syncing database state to search indexes, analytics warehouses, or event buses via Debezium or transactional outbox tables.
## Reliable capture
- Prefer the **transactional outbox pattern** (or WAL-backed Debezium on stable internal tables) rather than dual-writing to PostgreSQL and Kafka directly in app code.
- Partition CDC topics strictly by primary/aggregate ID so all updates for one entity maintain total causal order across consumer partitions.
- Handle initial table snapshots carefully without starving OLTP locks or overwhelming downstream brokers (`snapshot.mode`, rate-limited fetch sizes).
## Consumers and evolution
- Make downstream sinks idempotent by honoring source LSN/version numbers or `updated_at` monotic checks so replayed snapshots never overwrite newer state with stale events.
- Enforce backward-compatible Avro/Protobuf/JSON Schema evolution rules cleanly via a Schema Registry before altering source columns.
## Verify
Test out-of-order replay, tombstone (`DELETE`) handling, uncommitted rollback isolation, and schema evolution against test fixtures before deployment.