# CDC Glossary

Page title: CDC Glossary: Terms and Aliases

> Vendor-agnostic definitions for the CDC vocabulary: WAL, LSN, tombstones, snapshots, exactly-once vs. effectively-once, and the rest. Anchor links per term.

Canonical page: <https://sandgraal.github.io/letstalkcdc/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.

See also: Exactly-once, Effectively-once, Idempotent write, Deduplication

Learn more: [Exactly-Once Semantics](https://sandgraal.github.io/letstalkcdc/exactly-once/#at-least-once), [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/#hops-title)

**# 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.

See also: Snapshot, Idempotent write, Watermark, Upsert

Learn more: [Backfill and Re-Snapshot Safely](https://sandgraal.github.io/letstalkcdc/backfill-resnapshot/)

**# 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.

See also: LSN / SCN, Idempotent write

Learn more: [Ops: Offsets & Replays](https://sandgraal.github.io/letstalkcdc/ops-offsets/#storage-title), [Postgres Replication Slots & WAL Growth](https://sandgraal.github.io/letstalkcdc/postgres-replication-slots/#replay-title)

**# 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.ms` elapses, tombstones linger.

See also: Tombstone

Learn more: [Event Envelope & Delivery Guarantees](https://sandgraal.github.io/letstalkcdc/event-envelope/#ordering-title), [Deletes That Stay Deleted](https://sandgraal.github.io/letstalkcdc/deletes-stay-deleted/)

**# 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.

See also: Idempotent write, Effectively-once, Resurrection

Learn more: [Testing a CDC Pipeline](https://sandgraal.github.io/letstalkcdc/test-your-pipeline/#reorder-title)

**# 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.

Learn more: [Failure Scenario Drills](https://sandgraal.github.io/letstalkcdc/troubleshooting/failure-drills/#drill-2-title), [DLQ Triage Assistant](https://sandgraal.github.io/letstalkcdc/dlq-triage/)

**# 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.

See also: Embedded engine, At-least-once, Deduplication

Learn more: [CDC Without Kafka](https://sandgraal.github.io/letstalkcdc/non-kafka-cdc/#server-title)

**# 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.

See also: Idempotent write, Upsert, Effectively-once, LSN / SCN

Learn more: [Transactional Outbox and Relay](https://sandgraal.github.io/letstalkcdc/transactional-outbox/#consumer-title), [Backfill and Re-Snapshot Safely](https://sandgraal.github.io/letstalkcdc/backfill-resnapshot/#idempotent-title)

**# Effectively-once**

The pragmatic alternative to exactly-once: the source is at-least-once, but the sink's idempotent writes plus a durable `event_id` ledger 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.

See also: Exactly-once, Idempotent write, At-least-once

Learn more: [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/)

**# Embedded engine (also: `Debezium Engine`)**

The Debezium library that runs a connector inside your own application. A change consumer receives batches and calls `markProcessed` for each record and `markBatchFinished` at 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.

See also: Debezium Server, At-least-once, Idempotent write

Learn more: [CDC Without Kafka](https://sandgraal.github.io/letstalkcdc/non-kafka-cdc/#engine-title)

**# 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.

See also: Effectively-once, Idempotent write, At-least-once

Learn more: [Exactly-Once Semantics](https://sandgraal.github.io/letstalkcdc/exactly-once/#per-hop), [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/)

**# 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=external` succeeds 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 for `index.gc_deletes` (60 seconds by default).

See also: Idempotent write, LSN / SCN, Tombstone

Learn more: [CDC Without Kafka](https://sandgraal.github.io/letstalkcdc/non-kafka-cdc/#search-title)

**# 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.id` and an epoch; Kafka Connect's exactly-once source mode gives each task its own transactional ID so that a zombie task is fenced out.

See also: Kafka transaction, Kafka Connect, Exactly-once

Learn more: [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/#connect-eos-title)

**# Idempotent write**

An operation that produces the same end state regardless of how many times it's replayed. Keyed `MERGE` / `UPSERT` on 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.

See also: Exactly-once, Effectively-once, Upsert, At-least-once

Learn more: [Exactly-Once Semantics](https://sandgraal.github.io/letstalkcdc/exactly-once/#idempotency), [Materialization 101 (Upsert/Delete)](https://sandgraal.github.io/letstalkcdc/materialization/#merge-title)

**# 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.

See also: SMT (single message transform), Dead-letter queue, Checkpoint, At-least-once

Learn more: [Hands-On Lab: Kafka + Debezium + Sinks](https://sandgraal.github.io/letstalkcdc/lab-kafka-debezium/), [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/#connect-eos-title)

**# Kafka transaction (also: `transactional producer`, `read_committed`)**

An atomic write that a Kafka producer with a `transactional.id` makes across topic partitions, optionally together with a consumer's offsets (`sendOffsetsToTransaction`). A consumer sees only committed records if it sets `isolation.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.

See also: Exactly-once, Fencing, At-least-once

Learn more: [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/#kafka-to-kafka-title)

**# 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.

Learn more: [Observability Basics](https://sandgraal.github.io/letstalkcdc/observability/#signals-title)

**# 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_size` caps that (default `-1`, unlimited), and `wal_keep_size` is only a minimum kept for standbys.

See also: WAL / Redo log, Snapshot, Replication slot

Learn more: [SQL Server & MySQL CDC Specifics](https://sandgraal.github.io/letstalkcdc/sql-server-mysql-cdc/#mysql-title), [Postgres Replication Slots & WAL Growth](https://sandgraal.github.io/letstalkcdc/postgres-replication-slots/#cap-title)

**# 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_lsn` serve the same purpose. CDC consumers checkpoint progress as the last applied LSN/SCN so a restart resumes without gaps or duplicates.

See also: WAL / Redo log, Checkpoint

Learn more: [SQL Server & MySQL CDC Specifics](https://sandgraal.github.io/letstalkcdc/sql-server-mysql-cdc/#positions-title), [Which Row Wins in Your Target](https://sandgraal.github.io/letstalkcdc/which-row-wins/)

**# 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.

See also: Idempotent write, Upsert, Effectively-once

Learn more: [Is CDC Exactly-Once? Per Hop](https://sandgraal.github.io/letstalkcdc/is-cdc-exactly-once/#sink-title)

**# 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.

See also: SMT (single message transform), At-least-once, Deduplication, Effectively-once

Learn more: [Transactional Outbox and Relay](https://sandgraal.github.io/letstalkcdc/transactional-outbox/)

**# 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.

See also: Compaction

Learn more: [Partitioning](https://sandgraal.github.io/letstalkcdc/partitioning/#key-choice)

**# 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.

See also: WAL / Redo log, Log retention, Checkpoint, Snapshot

Learn more: [Postgres Replication Slots & WAL Growth](https://sandgraal.github.io/letstalkcdc/postgres-replication-slots/#how-slots-work-title)

**# 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.

See also: Tombstone, Idempotent write, LSN / SCN

Learn more: [Deletes That Stay Deleted](https://sandgraal.github.io/letstalkcdc/deletes-stay-deleted/#resurrection-title), [Testing a CDC Pipeline](https://sandgraal.github.io/letstalkcdc/test-your-pipeline/#resurrection-title)

**# 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.

See also: Schema registry, Backfill

Learn more: [Schema Evolution](https://sandgraal.github.io/letstalkcdc/schema-evolution/), [Data Contracts for Database Events](https://sandgraal.github.io/letstalkcdc/cdc-data-contracts/#ddl-map-title)

**# 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.

See also: Schema evolution, Kafka Connect, Dead-letter queue

Learn more: [Schema Evolution](https://sandgraal.github.io/letstalkcdc/schema-evolution/), [Data Contracts for Database Events](https://sandgraal.github.io/letstalkcdc/cdc-data-contracts/#registry-title)

**# 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 `ExtractNewRecordState` to 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.

See also: Kafka Connect, Outbox

Learn more: [Data Contracts for Database Events](https://sandgraal.github.io/letstalkcdc/cdc-data-contracts/#shape-title), [Transactional Outbox and Relay](https://sandgraal.github.io/letstalkcdc/transactional-outbox/#router-title)

**# 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.

See also: Log retention, Idempotent write, Backfill, Watermark

Learn more: [Snapshotting: The First Sync](https://sandgraal.github.io/letstalkcdc/snapshotting/), [Backfill and Re-Snapshot Safely](https://sandgraal.github.io/letstalkcdc/backfill-resnapshot/)

**# Tombstone**

A Kafka message with a `null` value 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's `op` field is `"d"` and the `before` block 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-zero `delete.retention.ms` long enough for every consumer to see them before compaction reclaims the slot.

See also: Compaction

Learn more: [Deletes That Stay Deleted](https://sandgraal.github.io/letstalkcdc/deletes-stay-deleted/#tombstone-not-delete), [Event Envelope & Delivery Guarantees](https://sandgraal.github.io/letstalkcdc/event-envelope/#ordering-title)

**# 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 UPDATE` in Postgres, `MERGE` in 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.

See also: Idempotent write, Deduplication, LSN / SCN

Learn more: [Materialization 101 (Upsert/Delete)](https://sandgraal.github.io/letstalkcdc/materialization/#merge-title), [Which Row Wins in Your Target](https://sandgraal.github.io/letstalkcdc/which-row-wins/)

**# 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.

See also: LSN / SCN, Log retention

Learn more: [Postgres Replication Slots & WAL Growth](https://sandgraal.github.io/letstalkcdc/postgres-replication-slots/#how-slots-work-title), [SQL Server & MySQL CDC Specifics](https://sandgraal.github.io/letstalkcdc/sql-server-mysql-cdc/#mysql-title)

**# 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.

See also: Snapshot, LSN / SCN, Checkpoint, Backfill

Learn more: [Snapshotting: The First Sync](https://sandgraal.github.io/letstalkcdc/snapshotting/#watermarks), [Backfill and Re-Snapshot Safely](https://sandgraal.github.io/letstalkcdc/backfill-resnapshot/)

## 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.

---

CDC: The Missing Manual by Christopher Ennis (Let's Talk CDC), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attribution is required.
