Change Data Capture ストリームとは?
change data capture (CDC) は、データベースの transaction log を読み取り、commit された行の変更を順序付きのイベントストリームに変換します。downstream のコンシューマーがそのストリームを購読し、データをレプリケートしたり、キャッシュを更新したり、near real time で analytics に供給したりします。log を利用するため、CDC は polling もアプリケーションのクエリの変更もなしに、すべての変更をキャプチャします。
なぜ重要か
polling によって派生システムを同期し続けるのは遅く取りこぼしも生じますが、change stream は更新を発生と同時に届けます。CDC は、outbox の relay、キャッシュの無効化、data pipeline の共通の基盤となっています。
関連ガイド
What Is the Outbox Pattern?The outbox pattern writes events to a database table in the same transaction as the data change, then publish…
What Is Read Replica Routing?Read replica routing directs read queries to replica databases while writes go to the primary, scaling read t…
What Is the Eventual Consistency Model?The eventual consistency model guarantees that replicas converge to the same value over time once writes stop…