Context Map
Derived from model/model.yaml. The pricing service is built on develop (IQVO/pricing at 5a18326, checked 2026-10-27) and not deployed (no warehouse-infra entry). Every Err... name, REST route and CloudEvents type of this context named on this page exists in the service; where the built service differs from the model's design, the page says so (As built) or the context's Service and operations section lists it.
Following ddd-crew Context Mapping. This is pricing's slice of the storefront-wide context map: every relationship this context has, with the upstream (U) and downstream (D) side, the pattern and the channel.
Derived from: model.yaml → contexts[pricing].inbound, .publishes,
.consumes, .rest; contexts[checkout].sync_calls,
contexts[product-discovery].inbound + .sync_calls,
contexts[shopping-cart].inbound; network/model/model.yaml → contexts[offer-availability].publishes.
Legend: arrows point from upstream to downstream, except the two REST
reads drawn with the caller on the left (labelled with the true direction).
A solid arrow is a synchronous REST relationship; a thick arrow is a Kafka
event relationship. The path parameter {quoteId} is written quoteId
inside the diagram.
Omitted, because they have no edge with this context (Separate Ways):
product-content (Generic; product-discovery joins content and price,
pricing never sees content), customer-payments (Generic; it learns totals
from checkout events, never from pricing), and the whole network except
offer-availability: pricing never calls delivery-promise and never sees
a promise, only the tier enum it prices. Also omitted: the
retailnetwork.pricing.analytics topic, which carries PriceQuoteIssued
to analytics consumers only.
Relationships
| Neighbour | Direction | Pattern | Channel | Messages | Why this pattern |
|---|---|---|---|---|---|
| Storefront merchandiser (human) | merchandiser downstream, pricing upstream | UI (inbound row relationship: UI) | REST /item-prices, /delivery-charge-schedules, /tax-tables writes and the current-state reads | SetListPrice, ScheduleSale, CancelSale, WithdrawPrice, PublishChargeSchedule, PublishTaxTable, GetItemPrice, GetCurrentChargeSchedule, GetCurrentTaxTable | Pricing is the specification the merchandiser maintains; one writer keeps every derived view consistent. |
checkout (Supporting) | pricing upstream, checkout downstream | Customer/Supplier (checkout is the Customer) | REST POST /price-quotes, GET /price-quotes/{quoteId} | IssuePriceQuote, GetPriceQuote | The quote must be issued and read back inside the shopper's request, and its shape (lines, groups, versions, TTL) is negotiated for checkout's saga. |
product-discovery (Supporting) | pricing upstream, PD downstream | Conformist (events) | Kafka retailnetwork.pricing.events | ItemPriceChanged, ItemPriceWithdrawn | PD projects the events as published into ProductView, with its own monotonic guard on the price version. |
product-discovery (Supporting) | pricing upstream, PD downstream | Customer/Supplier (query) | REST GET /item-prices (bootstrap and rebuild only, paged) | ListItemPrices | Snapshot + catch-up rebuild: a deliberate paged read, never on a user request. Shoppers see prices through product-discovery's ProductView, never from pricing directly. |
shopping-cart (Supporting) | pricing upstream, SC downstream | Customer/Supplier (SC is the Customer) | Kafka retailnetwork.pricing.events | ItemPriceChanged, ItemPriceWithdrawn, DeliveryChargeScheduleChanged, TaxTableChanged | The cart's labelled estimate is computed from pricing's data; the estimate's shape is negotiated so the cart never has to call pricing synchronously. |
offer-availability (network, Supporting) | OA upstream, pricing downstream | Conformist | Kafka retailnetwork.offer-availability.events | CatalogItemCreated, CatalogItemDiscontinued | The item master is taken as published into CatalogItemView; pricing never redefines the item (business decision 4). |
Notes on the patterns
- No Anti-Corruption Layer. The one network edge is an event feed in
the organisation's own CloudEvents standard, consumed as published. The
only ACL in the storefront design is checkout's outbound adapter toward
the network's
customer-ordering, not pricing. - No Shared Kernel. The service-tier enum is re-declared inside
TierCharge;catalogItemIdis a value copied from events, not shared code. - No synchronous call out.
sync_callsis empty: every surface that needs a price either reads it here (OHS-style reads, UI) or follows the events. The cart estimate never blocks on pricing. - One event, two patterns.
ItemPriceChangedis Conformist forproduct-discoveryand Customer/Supplier forshopping-cart: the relationship is per consumer, and both consumers' own model entries say so. - No warehouse-systems edge. Pricing never produces or consumes a
warehouse.*topic (meta.hard_boundary).