Product Master
Product Master is one of the fleet's sixteen domain bounded contexts. It
sits in the wms tier of the CloudEvents subdomain taxonomy, the third wms
context after facility-layout and inventory-storage (inbound-receiving
and slotting-optimization have since become the fourth and fifth). It is the single source of
truth for what a SKU is: for handling (its classification) and physically
(its unit dimensions and weight). It answers no "where" or "how many"
question; stock stays in inventory-storage
(ADR 0001).
It owns one aggregate, Product, identified by SKU, with an optional
description, an optional Classification (the closed handling-tag set,
TemperatureClass and DOT hazard class), a Physical profile (declared,
measured and effective values, with a discrepancy flag,
ADR 0002)
and a version carried on every published event.
Per this context's own Context Map,
checked against the reference deployment (warehouse-infra develop):
Live (wired in warehouse-infra develop): six contexts keep a
version-guarded local copy of ProductClassified from
warehouse.product-master.events, one row per SKU: inventory-storage (its
ADR 0034), order-management (ADR 0036), wes-work-planning (ADR 0035),
fulfillment-execution (ADR 0039), slotting-optimization and
returns-processing. For order-management, wes-work-planning and
fulfillment-execution that replaced their former
GET /products/{sku}/classification calls to inventory-storage
(ADR 0003,
stages C and D); inventory-storage has since removed its own classification
surface (stage E, its PR #218). The GS1 packaging hierarchy
(ADR 0011:
pack levels with a GTIN, ProductPackLevelDeclared, ProductPackLevelMeasured,
ProductPackLevelRetired, GET /gtins/{gtin}) feeds seven local pack views:
inbound-receiving, inventory-storage, pick-face-replenishment,
slotting-optimization, wes-work-planning, fulfillment-execution and
network-inventory-planning (ProductPackLevelMeasured is read only by
wes-work-planning and slotting-optimization). inbound-receiving reads
ProductRegistered, and slotting-optimization reads
ProductDimensionsDeclared and ProductMeasured. Events leave through a
transactional outbox. Every consumer group is set in warehouse-infra
develop (helm-values/<consumer>.yaml or the consumer chart's default).
Read surfaces (no service-to-service reads): REST behind Kong at
/api/product-master, a read-only MCP server (cmd/mcp, four tools,
ADR 0005)
that warehouse-ops-agent reads for its find_master_data_gaps tool, the
productmaster_mfe console remote at /mfes/product-master/ (the Product
Master tile in warehouse-console), and the master data quality report of the
analytics read side (cmd/product-projector and cmd/product-reports,
ADR 0006).
Retired: the legacy importer of inventory-storage's own
ProductClassified (stage E of ADR 0003): neither the importer nor the
legacy type exists on either develop (fleet edge K21, retired).
Published contract, no consumer yet: ProductDescriptionChanged.
This context's pages
- Business Context: why "what a SKU is" needed its own context, and how classification moves out of the stock ledger.
- Ubiquitous Language: Product, SKU, Classification, handling tags, TemperatureClass, DOT hazard class, Physical profile (declared, measured, effective, discrepancy), version.
- Core Domain Chart (ddd-crew core-domain-charts): why this context is Supporting.
- Bounded Context Canvas (ddd-crew bounded-context-canvas): purpose, classification, roles, inbound and outbound communication, business decisions and open questions.
- Context Map (ddd-crew context-mapping): every relationship with its pattern, technology and status.
- Aggregate Design Canvas
(ddd-crew aggregate-design-canvas):
the
Productaggregate. - Domain Events: the eight
product.*events it publishes and who consumes each. - Domain Message Flow (ddd-crew domain-message-flow-modelling): key scenarios as commands, events and queries.
- EventStorming (ddd-crew eventstorming-glossary-cheat-sheet): design-level process flows and hotspots.
- Class Diagram: the domain model and the hexagonal ports as they exist in the code.
- Entity Relationship: the persisted tables.
- Sequence Diagrams: register, classify, declare and measure, and the outbox relay.
- Use Cases: the application use cases and the endpoint or consumer that drives each.
- Async API: the Kafka integration in narrative form.
Every page above except the Business Context and the Async API narrative
is synced from the product-master repository.
Elsewhere
- Repository: github.com/IQVO/product-master.
Its ADRs live under
docs/adr/, notdocs/docs/adr/: six ondevelop, 0001 (the bounded context), 0002 (physical profile), 0003 (migration from inventory-storage), 0004 (CloudEvents envelope and type catalogue), 0005 (read-only MCP server) and 0006 (analytics read side). - ADR index: links to this context's own decision records.
- Generated references on this site: REST
and AsyncAPI, generated from the
real
apis/openapi.yamlandapis/asyncapi.yaml. - Fleet-level: Context Map (K20, K21), the Event Standard and the Ubiquitous Language.