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
@@ -15,9 +15,22 @@ shared a repository with its platform, model and products.
|
||||
| Template | Product class | MD-DDL `class` | Status |
|
||||
|---|---|---|---|
|
||||
| [canonical_data_product/](canonical_data_product/README.md) | Canonical: a slice of the domain's canonical model, published as modelled through GraphQL, Kafka and Trino | `domain-aligned` | Available, with generic unit tests. Example verified 2026-09-18 on the domain platform (9 checks, 12 unit tests); Canonical Party generated from it passes 65 checks and 100 unit tests |
|
||||
| `source_aligned_data_product/` | Source aligned: one source system's data in its own shape, for audit, replay and debugging | `source-aligned` | Planned |
|
||||
| [source_aligned_cdc_data_product/](source_aligned_cdc_data_product/README.md) | Source aligned, one product per source system: capture by CDC where there is database access, then the semantic and protocol transform into what a canonical product accepts | `source-aligned` | Available. Runs on the Integration Bus with the `data-bus` CLI. Example verified 2026-09-18: 12 smoke checks, 37 unit tests, ERP customers delivered into Canonical Party |
|
||||
| `source_aligned_file_data_product/` | Source aligned: the source produces files, which become a stream; files land in the bus object store's `files/` bucket | `source-aligned` | Planned, designed |
|
||||
| `source_aligned_api_data_product/`, `source_aligned_bus_data_product/` | Source aligned: polling or webhooks; or a bridge from a bus the source already publishes to | `source-aligned` | Planned |
|
||||
| `experience_<class>_data_product/` | Experience: shaped for an audience. Several classes, e.g. lake tables built by scheduled dbt models | `consumer-aligned` | Planned |
|
||||
|
||||
A canonical product accepts records only on its inbound topics (registered schema, keyed by the
|
||||
entity's identifier) or through its GraphQL API, so a source-aligned product owns both the
|
||||
protocol and the semantic transform into that contract, and owns the dead-letter queue for what
|
||||
it cannot transform. It also archives every raw record to the bus object store, so the records
|
||||
outlive the topic and can be replayed. The design and the shared contract for the family are in
|
||||
semprini-data `docs/source-aligned-products.md`.
|
||||
|
||||
The two classes are deployed by different CLIs, because they run in different places: canonical
|
||||
products by `data-domain`, from the domain repository that runs them; source-aligned products by
|
||||
`data-bus`, from a semprini-data checkout.
|
||||
|
||||
## Where templates sit between the teams
|
||||
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user