debezium/dbz

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

开放

#313 创建于 2025年12月11日

 (5 条评论) (0 个反应) (1 位负责人)HTML (6 个派生)auto 404
component/examplesgood first issuemigrated-from-jiratype/task

仓库指标

星标
 (3 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南