build-cdc-streaming-pipeline

Designs log-based CDC pipelines from database transaction streams to Kafka topics.

9|3|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill build-cdc-streaming-pipeline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-cdc-streaming-pipeline
Source: https://github.com/Sir-chawakorn/sanook-cli/tree/main/skills/build-cdc-streaming-pipeline
Command: npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill build-cdc-streaming-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of maintaining real-time data synchronization between databases and downstream systems, ensuring that row-level changes, including deletions, are propagated accurately without the latency of traditional batch ETL processes.

Core Features & Use Cases

  • Log-based CDC: Captures changes directly from database transaction logs (WAL/binlog) for high-fidelity, low-impact data extraction.
  • Stream Integrity: Manages complex streaming requirements like exactly-once delivery, schema evolution, and handling out-of-order events.
  • Use Case: Synchronizing a production PostgreSQL database with an Elasticsearch search index or a data warehouse in near-real-time, ensuring that deletes and updates are reflected immediately without manual intervention.

Quick Start

Use the build-cdc-streaming-pipeline skill to design a robust architecture for streaming row changes from a primary database into a Kafka topic while ensuring schema compatibility and idempotent sink operations.

Frequently Asked Questions about build-cdc-streaming-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a CDC streaming pipeline that captures database changes in real-time?

To build a CDC streaming pipeline, you extract changes directly from database transaction logs like WAL or binlog. This approach ensures high-fidelity, low-impact data propagation to downstream systems without the latency of traditional batch ETL processes.

What is log-based CDC and how does it handle row-level deletions for data synchronization?

Log-based CDC captures row-level changes, including deletions, directly from database transaction logs to maintain real-time data synchronization. This ensures all modifications are propagated accurately to downstream systems like search indexes or data warehouses immediately.

How do I ensure exactly-once delivery when streaming data from a database to a Kafka topic?

Ensuring exactly-once delivery in a CDC streaming pipeline involves managing complex stream integrity requirements. This includes correct consumer-group offset management, schema registry integration, and idempotent sink operations to prevent duplicate events during data propagation.

Can I use Debezium to sync a PostgreSQL database with Elasticsearch in near-real-time?

Yes, you can synchronize a production PostgreSQL database with an Elasticsearch search index in near-real-time. By leveraging log-based extraction from transaction logs, updates and deletes are reflected immediately without manual intervention.

What is the best way to handle schema evolution and out-of-order events in a real-time data pipeline?

Handling schema evolution and out-of-order events in a real-time data pipeline requires robust stream integrity management. Integrating a schema registry ensures compatibility, while correct offset management maintains event ordering during continuous streaming.

Why does my batch ETL process have high latency compared to log-based CDC for table mirroring?

Batch ETL processes inherently introduce latency because they process data in scheduled intervals rather than continuously. Log-based CDC captures changes instantly from database transaction logs, providing the continuous, low-latency data propagation required for table mirroring.