Ch. 11
Databases and Streams
Databases and streams are two views of the same data — and keeping them in sync is the integration challenge.
A database holds current state; a stream holds the history of changes. CDC bridges them by tailing the replication log. Event sourcing inverts the model: the log is primary, and current state is a derived view rebuilt by replay.
CDCDebeziumKafkaPostgreSQLevent sourcingtransactional outbox