Add the source-aligned CDC template, and key the canonical template's topics
The first template of the source-aligned family: one data product per source system, capturing a database by CDC and turning what it emits into what a canonical product accepts. It runs on the Integration Bus, not in a domain, and is deployed with the `data-bus` CLI. What it produces, and what its tests hold it to: raw topics in the source's own shape; deterministic identity, so a re-snapshot upserts rather than duplicating; validation against the canonical product's rules before publishing, with what fails going to the product's own dead-letter topic with the reason; keying by the canonical identifier; provenance in headers; and an archive in the bus object store that can be replayed back onto the raw topic. The worked example captures an ERP customer table and delivers into Canonical Party in the digital-core domain: 12 smoke checks, 37 unit tests, including a poison record that is quarantined while the next record still arrives. The canonical template's topics now declare the key producers must set, which is the other half of that contract. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca6bea351a
commit
866bcfe238
44 files changed
+2505
-11
No files matched your search
@@ -3,7 +3,9 @@
|
||||
-- ${ODS_PASSWORD} is substituted from the domain's .env at submission and never committed.
|
||||
--
|
||||
-- Per entity table, four Flink tables and two continuous INSERTs:
|
||||
-- <table>_inbound kafka Publish Input: records producers publish (JSON, schema in events/schemas)
|
||||
-- <table>_inbound kafka Publish Input: records producers publish (JSON, schema in events/schemas),
|
||||
-- keyed by <table>_id: only messages sharing a key share a partition,
|
||||
-- and only one partition keeps them in order
|
||||
-- <table>_ods jdbc upserts inbound records into the ODS table by primary key
|
||||
-- <table>_cdc postgres-cdc every change committed to the ODS table, however it arrived
|
||||
-- <table>_outbound upsert-kafka Subscribe Output: compacted topic keyed by <table>_id, deletes as tombstones
|
||||
|
||||
Reference in new issue
Block a user