Change data capture
Conceptual overview of Nilus Change Data Capture: how it reads database logs, handles initial snapshots, propagates row-level changes, and manages state.
Change Data Capture reads inserts, updates, and deletes from a source system and applies them to another system with low delay. Nilus uses CDC when a source exposes a durable change-log surface and the destination needs fresher state than a scheduled batch copy can provide.
CDC planning still matters because each source has its own log, permission, retention, schema-change, and recovery behavior. The connector pages document those source-specific requirements; this page explains the common Nilus model.
CDC in Nilus
Nilus models CDC as type: nilus with spec.type: cdc. The authored manifest keeps connector-specific change-capture settings under spec.source.cdc, while Nilus handles the runtime service, state persistence, and sink loading path. In practice, Nilus CDC combines:
source-specific log reading
optional initial snapshotting for bootstrap
event shaping through
source.options.strategydurable offset and schema history storage
For the full list of source.options, source.cdc, and sink.options keys (tables, examples, and validation notes), see CDC Pipeline Config. That page is the single reference for CDC manifest authoring; this page explains the conceptual model only. See CDC sample configs for complete examples.
Core capabilities
Nilus CDC type provides the following capabilities:
Source-aware change capture
Nilus reads the source system through connector-specific CDC settings such as include lists, topic prefixes, slot or server identifiers, and heartbeat controls.
These settings stay in
spec.source.cdcso the pipeline manifest reflects the source contract clearly.Source prerequisites still differ by connector, which is why the connector pages remain essential for production onboarding.
Snapshot plus ongoing capture
CDC bootstrapping often needs both an initial snapshot and ongoing log consumption.
Nilus supports that handoff inside the same CDC model instead of forcing users to wire two separate pipelines for baseline load and steady-state change capture.
Include lists should stay narrow during onboarding so the first snapshot and ongoing state are easier to validate.
Stable event and state handling
Nilus can emit row-oriented records through strategies such as
flatten, or keep change-oriented structure where the connector contract requires it.Offsets, schema history, and pipeline state are persisted through the Nilus observability layer so CDC runs can be restarted and inspected consistently.
Keeping
topic.prefixand other identity keys stable is important because those values affect how state is tracked over time.
Flow
The source connector reads change events from the database log or equivalent change surface.
Nilus applies source-specific CDC configuration from
spec.source.cdc.The runtime emits row-shaped or change-shaped output depending on the configured strategy.
Nilus writes the output to the sink and stores offsets, schema history, and run metadata for recovery and observability.
Constraints
Every CDC source has its own permissions, replication, and retention requirements.
Long-running lag can cause problems if the source’s change-log retention window is shorter than the pipeline recovery window.
Schema evolution is a first-class operational concern and should be tested with the actual source and destination pair.
CDC does not remove the need for destination-specific write planning. Sink behavior still depends on the destination contract.
Related docs
Last updated
Was this helpful?