Change Data Capture and Snapshot Handoffs
Copy a consistent baseline and continue from the matching log position without losing changes between the two phases.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A snapshot needs a precise boundary
Suppose a consumer copies current records while writes continue in a source. Starting a change stream only after the copy ends can omit changes committed during it. A coordinated snapshot identifies the log position or supported handoff state corresponding to its contents. Later changes are replayed from that point according to transaction and ordering semantics. Alternatively a system can buffer changes during the copy under a documented reconciliation rule.
Changes carry identities and transaction context
A consumer applying updates needs a stable record key, operation type, and version or source position. Deletes and schema changes are part of the history too. If multiple records belong to one transaction, decide when downstream users may see them. Source offsets discuss replay positions. Transactional outbox is a related method for producing explicit domain events from local transactions.[1][2]