debezium/dbz

Demo: Keep *all* change events in a downstream database [DBZ-2101]

オープン

#313 opened on 2025/12/11

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)HTML (6 件のフォーク)auto 404
component/examplesgood first issuemigrated-from-jiratype/task

Repository metrics

Stars
 (3 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Migrated from DBZ-2101

A while ago, we showed on the blog how to [create an audit log|https://debezium.io/blog/2019/10/01/audit-logs-with-change-data-capture-and-stream-processing/] based on change data events.

That example didn't cover though how those enriched change events are propagated to a sink database or DWH, allowing to analyse the full change history of a given customer or purchase order for instance. In this demo,

The Apache Camel Kafka Connect JDBC sink connector should be used on the sink side. Or perhaps the sink connectors for Google Big Query, Snowflake or another DWH. The sink primary key would be derived from the actual table PK + uniquely identifying attributes from the source block of change events (which would have to be propagated to the emitted row using the flattening SMT). I.e. each event would have its own unique PK value. While each event only ever should be inserted once into the sink database, this could happen another time after a connector crash ("at least once" semantics"), so upsert semantics should be applied to effectively ignore these duplicates.

コントリビューターガイド