CDC Glossary
The vocabulary you need to talk about Change Data Capture without hand-waving. Definitions stay vendor-agnostic where they can and call out the specific name each database/broker uses where they can't.
About this glossary
Each entry has a stable anchor. Deep-link from a module page or a
Slack thread with /letstalkcdc/glossary/#tombstone
and the reader lands on the definition directly. Aliases list
other names you'll see in the wild; "see also" cross-links the
related entries.
Definitions
-
#
At-least-once
(also:
ALO,at least once) -
A delivery guarantee: every committed change reaches the consumer one or more times, never zero. Duplicates follow retries, restarts and replays from a checkpoint, so correctness comes from idempotent sinks keyed on the primary key and ordered by source log position, not from the transport. It is a per-hop property: Debezium documents at-least-once delivery, and its opt-in Kafka Connect exactly-once mode (requires Kafka Connect 3.3+, KIP-618; documented from Debezium 3.3) covers only the source-to-Kafka hop, and the docs note open correctness issues in Kafka transactions, so it does not make the pipeline exactly-once end to end.
-
#
Backfill
(also:
re-snapshot,historical load) -
Re-loading existing rows into a sink โ after the first deploy, a schema change, a bug fix or a sink rebuild โ usually with a snapshot or an incremental snapshot. A backfill interleaves with live changes and produces duplicates, so it must go through the same idempotent, primary-key-keyed writes as streaming and must never replace a newer streamed value with an older snapshot read.
- # Checkpoint
-
The persisted record of "I have successfully processed everything up to LSN/SCN X" stored by a CDC consumer. Restarts replay from the checkpoint, so a missed flush means duplicates on resume; idempotent sinks handle this. Most connectors checkpoint after a confirmed sink write, not after a read.
- # Compaction
-
Kafka's "keep the latest value per key" retention mode. Combined with tombstones it gives you a materialized view of state on the topic that a late-joining consumer can rebuild without replaying every historical write โ useful for downstream state stores. The gotcha: until compaction actually runs (it's a background process, not instant), readers still see every intermediate value; until
delete.retention.mselapses, tombstones linger. -
#
Convergence test
(also:
idempotence test,replay test) -
A test that applies a change log to a sink twice, and again in shuffled order with duplicates, and requires the final table state to equal in-order application by source log position. It checks the at-least-once contract (duplicated, late and replayed changes still converge), not the absence of duplicates. See the testing module for runnable examples.
-
#
Dead-letter queue
(also:
DLQ) -
A side topic / table where the connector parks events it can't process โ typically schema mismatches, deserialization failures, or sink errors. Without a DLQ, the connector either drops the event (data loss) or stalls the whole partition (head-of-line blocking). With one, the bad records are visible and triageable.
- # Debezium Server
-
A ready-to-use Debezium application that runs one source connector and streams its change events to a sink (Kinesis, Pub/Sub, Pulsar, Redis, HTTP and others) without Apache Kafka. You configure the offset store yourself. Delivery is at-least-once, so a crash repeats some events and the consumer deduplicates on the source log position.
-
#
Deduplication
(also:
dedup,dedupe) -
Collapsing repeated deliveries of the same change into one effect. At-least-once delivery allows repeats after retries and restarts, so the sink either makes the write idempotent (an upsert on the primary key) or skips any event whose source log position is not newer than what the row already holds. Compare by log position (LSN/SCN/binlog coordinates), not by timestamp or Kafka offset: a timestamp can tie or move backwards, and an offset is local to one topic partition.
- # Effectively-once
-
The pragmatic alternative to exactly-once: the source is at-least-once, but the sink's idempotent writes plus a durable
event_idledger collapse duplicates so the observable end state matches an exactly-once delivery. The write is a keyed upsert applied only if the incoming source log position is newer than the row's. This is what most production CDC pipelines actually ship. -
#
Embedded engine
(also:
Debezium Engine) -
The Debezium library that runs a connector inside your own application. A change consumer receives batches and calls
markProcessedfor each record andmarkBatchFinishedat the end; offsets are flushed from those calls. Mark a record only after its effect is durable: a crash then repeats it instead of losing it. - # Exactly-once
-
The guarantee that every source event lands in the sink exactly once, with no duplicates and no drops. End-to-end exactly-once across independent systems (source database, broker, warehouse) is not achievable; exactly-once is possible only inside one transactional boundary, such as Kafka to Kafka (and Debezium's opt-in Kafka Connect EOS covers only the source-to-Kafka hop). Most stacks ship "effectively-once" (at-least-once delivery + idempotent sinks + a deduplication ledger). The errata page covers the specific traps.
-
#
External versioning
(also:
version_type=external) -
Letting the caller supply the version of a document instead of the store counting it. In Elasticsearch and OpenSearch a write with
version_type=externalsucceeds only if its version is strictly higher than the stored one, so with the source log position as the version a stale replay or duplicate is refused. A deleted document’s version is remembered only forindex.gc_deletes(60 seconds by default). -
#
Fencing
(also:
zombie fencing) -
Disabling an older instance of a producer or task so that it can no longer write, after a newer instance has taken over. Kafka ties a transactional producer to its
transactional.idand an epoch; Kafka Connect's exactly-once source mode gives each task its own transactional ID so that a zombie task is fenced out. - # Idempotent write
-
An operation that produces the same end state regardless of how many times it's replayed. Keyed
MERGE/UPSERTon a stable primary key is the most common pattern, applied only if the incoming event's source log position is newer than the one the row already holds, so a replayed older event becomes a no-op. Without idempotency, at-least-once delivery from the source amplifies into duplicate rows in the sink on every connector restart. - # Kafka Connect
-
The Apache Kafka framework for running source connectors (system into Kafka) and sink connectors (Kafka out to a system) on a pool of workers that handle configuration, scaling and offset storage. Debezium's CDC connectors are Kafka Connect source connectors; they commit the source log position as their offset in a Kafka topic in distributed mode (standalone mode stores offsets in a file), and a restart resumes from the last committed one.
-
#
Kafka transaction
(also:
transactional producer,read_committed) -
An atomic write that a Kafka producer with a
transactional.idmakes across topic partitions, optionally together with a consumer's offsets (sendOffsetsToTransaction). A consumer sees only committed records if it setsisolation.level=read_committed; the default,read_uncommitted, also returns records from aborted transactions. The atomicity stops at Kafka: it does not include a database, a warehouse load or an HTTP call. - # Lag
-
The time between a source commit and the corresponding sink apply. Track p50/p95/p99, not just the mean โ CDC lag is bursty (DDL, large transactions, consumer restarts), and the average hides the tail you actually have to capacity-plan against.
- # Log retention
-
How long the source database keeps WAL/binlog/redo segments before recycling them. If a CDC consumer falls behind and its checkpoint LSN ages out, the connector can't resume โ it has to bootstrap with a full snapshot. Tune retention to cover your worst-case consumer outage plus a margin; on Postgres, a replication slot retains WAL until its consumer confirms it,
max_slot_wal_keep_sizecaps that (default-1, unlimited), andwal_keep_sizeis only a minimum kept for standbys. -
#
LSN / SCN
(also:
LSN,SCN,log sequence number,system change number) -
A monotonically increasing identifier the database assigns to each log position. Postgres calls it the LSN (Log Sequence Number); Oracle calls it the SCN (System Change Number); MySQL's GTID + binlog coordinates and SQL Server's
__$start_lsnserve the same purpose. CDC consumers checkpoint progress as the last applied LSN/SCN so a restart resumes without gaps or duplicates. -
#
Offsets in the sink transaction
(also:
offsets stored with the data) -
A consumer pattern for a sink that has transactions: the consumer saves its Kafka offset in the same database transaction as the rows it writes, then seeks to that stored offset on restart. A crash cannot leave data and offset out of step. It does not remove a duplicate that already sits in the topic at another offset, so the upsert still needs a guard on the source log position.
-
#
Outbox
(also:
outbox pattern,transactional outbox) -
A pattern where a service writes its business row and an event row to an outbox table in the same database transaction, and CDC reads the outbox and publishes the events. It removes the dual write (database plus broker) that can lose or invent events, but delivery stays at-least-once, so consumers deduplicate on a stable event id. Debezium ships an Outbox Event Router SMT for it.
- # Partition key
-
The field whose hash decides which Kafka partition (or equivalent) a message lands on. CDC ordering is guaranteed per partition key, not cross-key โ if you partition by
user_id, every event for a given user is ordered, but events across users are not. Choose the key to match the unit of ordering your downstream actually needs. -
#
Replication slot
(also:
slot,logical replication slot) -
A Postgres server-side bookmark recording how far a replication consumer, such as a Debezium connector, has read, so the server keeps every WAL segment that consumer still needs. An unconsumed or abandoned slot retains WAL indefinitely and can fill the primary's disk. Cap the retention with
max_slot_wal_keep_size(default-1, unlimited), accepting that a slot that falls further behind is invalidated and the connector must re-snapshot, and drop slots you no longer use. -
#
Resurrection
(also:
zombie row) -
A deleted row that reappears in a sink because an older change for the same key was applied after the delete. It happens when a delete physically removes the row, leaving nothing to compare a late or replayed update against. Keeping the delete as a marker that carries its log position, and guarding updates on position, prevents it.
- # Schema evolution
-
The discipline of versioning the event payload's shape so producers can add fields without breaking consumers. Additive changes (new optional fields) are safe; renames and removals require a migration window with both the old and new field present. Schema Registry (Confluent, Karapace, AWS Glue) enforces compatibility rules at produce time.
- # Schema registry
-
A service that stores versioned event schemas (Avro, Protobuf, JSON Schema) so each message carries a small schema ID instead of the full schema, and that rejects a new schema version that breaks the configured compatibility rule. Confluent Schema Registry, Karapace and AWS Glue Schema Registry are common implementations. It guards the payload shape only; it does nothing about ordering or duplicates.
-
#
SMT (single message transform)
(also:
SMT,single message transform) -
A Kafka Connect transformation applied to each record as it passes through a connector, configured in the connector's JSON rather than written as a separate service โ for example Debezium's
ExtractNewRecordStateto flatten the change envelope, or the outbox event router. An SMT sees one record at a time, so it cannot join, aggregate or reorder across records. -
#
Snapshot
(also:
initial snapshot,incremental snapshot) -
The bootstrap process: read the current state of every row, emit it as change events, then switch to streaming the log. Initial snapshots can interleave with live changes โ design consumers to reconcile by source log position (LSN/SCN/binlog coordinates), not by a timestamp: keep a row only if the incoming event's position is newer than the one the row already holds. Snapshot reads carry the snapshot's boundary position, so live streaming events that follow it win. Incremental snapshots (signal- based, popularized by Debezium) let you re-snapshot a subset without taking down the whole connector, at the cost of potential duplicates the sink has to dedupe.
- # Tombstone
-
A Kafka message with a
nullvalue and a populated key, used by log compaction as the "delete this key" marker. In Debezium and similar CDC producers, a source-row delete is carried by the normal change event (the envelope'sopfield is"d"and thebeforeblock holds the pre-delete row); the tombstone is an optional follow-up message that lets a compacted topic eventually drop the key. Sinks read the delete from the change event, not from the tombstone. Tombstones need a non-zerodelete.retention.mslong enough for every consumer to see them before compaction reclaims the slot. -
#
Upsert
(also:
MERGE,INSERT โฆ ON CONFLICT) -
A write that inserts a row when its primary key is absent and updates it when present โ
INSERT โฆ ON CONFLICT DO UPDATEin Postgres,MERGEin SQL Server, Oracle, Snowflake and BigQuery. Keyed on the source primary key, it lets a sink apply insert and update events idempotently, so a replay converges on the same row instead of duplicating it. An upsert alone does not stop an older event from overwriting a newer one; guard it with the source log position. -
#
WAL / Redo log
(also:
WAL,binlog,redo log,T-log) -
The database's append-only record of committed writes. Log-based CDC tools tail this log instead of polling the source tables โ Postgres calls it the WAL (Write-Ahead Log), MySQL the binlog, Oracle the redo log, SQL Server the transaction log (T-log). All four serve the same role: a durable, ordered stream of every committed change.
-
#
Watermark
(also:
high-watermark,low-watermark) -
A marker of how far processing has safely progressed. In snapshotting, the high-watermark is the source log position (LSN/SCN) recorded at the snapshot boundary, where streaming takes over; incremental snapshots write low and high marker rows so the log brackets each chunk read. A consumer-side watermark (a polling cursor, or โsafe up to T-ฮโ event time for aggregates) only bounds replay or window closing โ it never decides which version of a row wins; log position does.
Missing a term?
The glossary is data-driven โ add entries to
src/_data/glossary.mjs and the page picks them up at
build time. Anchor IDs are stable: don't rename a slug
after it's been linked to externally.