Shop / Ebook

Cover of Change Data Capture from Scratch

Change Data Capture from Scratch

From database changes to history tables with SQL and Python

Available€23€13

A parcel company copies its database every night, and loses every status change, every cancelled parcel and every customer's old address. Build change data capture from scratch: snapshots, timestamps and the database log, replicas that stay exact, history you can query at any moment, and the real tools at the end. Every result in the book is real output.

What's inside

  1. Why nightly copies lose history, deletes and changes in between
  2. Snapshot diffs and timestamp extraction, and the traps in each
  3. Reading the database log: LSNs and the Debezium event format
  4. Applying events to replicas with upserts, MERGE and offsets
  5. Duplicates, events out of order and tombstones
  6. SCD Type 2 history and point-in-time joins from events
  7. Schema changes, streaming with partitions and consumer groups
  8. Testing and reconciling CDC against the source
  9. Postgres, Debezium and Kafka with Docker
  10. Case study: two weeks of parcels, answered and proven

You might also like