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>
91 lines
3.9 KiB
YAML
91 lines
3.9 KiB
YAML
# ERP Party: Open Data Product Specification v4.0 manifest, the product's entry in the catalogue.
|
|
# Read by `uv run data-bus register example`, which imports it into OpenMetadata and attaches
|
|
# the product's topics as its assets and output ports.
|
|
#
|
|
# A source-aligned product's consumers are not people writing queries: they are the canonical
|
|
# products it feeds, and the engineers who have to work out why a record was rejected. So the
|
|
# description says what it captures, what it guarantees, and what it refuses.
|
|
schema: https://opendataproducts.org/v4.0/schema/odps.yaml
|
|
version: 4.0
|
|
product:
|
|
details:
|
|
en:
|
|
name: "ERP Party"
|
|
productID: "bus.erp-party"
|
|
description: "The ERP's customers, captured by change data capture and published as the canonical Party records Canonical Party accepts. It is the only thing that knows the ERP's schema: its integer customer key, its I/O customer types and its single-letter status codes. Every record it publishes has been checked against Canonical Party's rules first; what fails is on erp.dlq with the reason, not in the digital-core domain. Identifiers are derived from the ERP key, so a re-snapshot upserts rather than duplicates."
|
|
visibility: organisation
|
|
status: draft
|
|
type: dataset # MD-DDL class: source-aligned
|
|
productVersion: "0.1.0"
|
|
categories:
|
|
- "Integration"
|
|
outputFileFormats:
|
|
- JSON
|
|
|
|
SLA:
|
|
declarative:
|
|
default:
|
|
name:
|
|
en: Default SLA
|
|
description:
|
|
en: "Service levels for ERP Party"
|
|
dimensions:
|
|
- dimension: updateFrequency
|
|
displaytitle:
|
|
en: Data Freshness
|
|
objective: 1 # streaming; a change is published within a minute
|
|
unit: minutes
|
|
- dimension: uptime
|
|
displaytitle:
|
|
en: Availability
|
|
objective: 99.0
|
|
unit: percent
|
|
support:
|
|
email: "integration@example.com"
|
|
|
|
dataQuality:
|
|
declarative:
|
|
default:
|
|
name:
|
|
en: Validation before publishing
|
|
description:
|
|
en: "Every record is checked against Canonical Party's rules before it is published: a legal name is present, the customer type is one the model knows, and the status code maps to a Party Status. What fails is published to erp.dlq with the reason and the original record, and is not sent to the canonical product."
|
|
dimensions:
|
|
- dimension: accuracy
|
|
displaytitle:
|
|
en: Records accepted by the canonical product
|
|
objective: 100
|
|
unit: percent
|
|
|
|
dataAccess:
|
|
raw:
|
|
name:
|
|
en: Raw records
|
|
description:
|
|
en: "The ERP's customer rows as the ERP holds them, captured by Debezium and kept for seven days so canonical records can be rebuilt without going back to the source. Keyed by the ERP's customer key."
|
|
outputPorttype: API
|
|
format: JSON
|
|
authenticationMethod: none # lab stack only
|
|
accessURL: "kafka://localhost:19092/raw.erp.public.customer"
|
|
specsURL: "http://localhost:8081/apis/registry/v3/groups/bus.erp/artifacts"
|
|
deadletter:
|
|
name:
|
|
en: Dead letters
|
|
description:
|
|
en: "Records that could not be turned into canonical records, each with the reason it was refused and the original record as JSON, so it can be corrected in the ERP and replayed. Kept for thirty days."
|
|
outputPorttype: API
|
|
format: JSON
|
|
authenticationMethod: none
|
|
accessURL: "kafka://localhost:19092/erp.dlq"
|
|
specsURL: "http://localhost:8081/apis/registry/v3/groups/bus.erp/artifacts"
|
|
|
|
dataHolder:
|
|
en:
|
|
legalName: "Semprini"
|
|
email: "integration@example.com"
|
|
|
|
license:
|
|
en:
|
|
scope:
|
|
restrictions: "Internal use within the organisation. The raw topic carries the source system's records unchanged, including personal data, and is subject to the ERP's own handling rules."
|