Skip to main content

Pricing

Built on develop, not deployed

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.

Core

Pricing (pricing, code PR, tier storefront) owns what a shopper pays: the list price and sale windows per catalogue item (ItemPrice), the delivery charge per service tier (DeliveryChargeSchedule), a synthetic tax table (TaxTable), and the binding, immutable, expiring PriceQuote a checkout session is confirmed against. One configured currency, integer minor units. The item master stays in the network's offer-availability context; pricing only references catalogItemId, kept current through CatalogItemCreated/CatalogItemDiscontinued events. Promotions are a later phase (decision D10).

This context's pages​

PageWhat it holdsddd-crew tool it follows
Business ContextThe problem, actors, decisions, relation to real storefronts, out of scope(narrative)
Ubiquitous LanguageTerms, code identifiers, terms not to confuseBounded Context Canvas (UL section)
Core Domain ChartWhy this context is CoreCore Domain Charts
Bounded Context CanvasPurpose, classification, roles, inbound and outbound messages, decisions, metricsBounded Context Canvas v5
Context MapEvery neighbour, direction and patternContext Mapping
Aggregate Design CanvasItemPrice, DeliveryChargeSchedule, TaxTable, PriceQuote: states, invariants, commandsAggregate Design Canvas v1.1
Domain EventsPublished and consumed CloudEvents, with an example envelopeDomain Message Flow Modelling (message catalogue)
Domain Message FlowPrice management, sale boundaries, quote issuing, discontinuationDomain Message Flow Modelling
EventStormingProcess-level boards with hotspotsEventStorming glossary & cheat sheet
Use CasesOne section per command: trigger, flow, errors, events, idempotency(application layer, fleet convention)
Class DiagramDomain model and hexagonal ports and adapters (the model's design, with the as-built packages)(UML, fleet convention)
Entity RelationshipPostgres schema as built (migration 0001)(fleet convention)
Sequence DiagramsAdapter to Kafka for every command use case(UML, fleet convention)

Service and operations​

  • Service: IQVO/pricing on develop (5a18326, 2026-10-27): binaries cmd/api; REST contract apis/openapi.yaml, event contract apis/asyncapi.yaml, schema in internal/adapters/outbound/postgres/migrations/ (see Entity Relationship). 5 ADRs, listed in the ADR index.
  • Configuration: mandatory at boot (the service exits naming the missing variable): DATABASE_URL, KAFKA_BROKERS, OFFER_AVAILABILITY_CONSUMER_GROUP. There is no in-memory mode. Packaging: a Helm chart in charts/pricing (its otel.endpoint value is rendered into OTEL_EXPORTER_OTLP_ENDPOINT; the chart test expects otel-collector.observability.svc.cluster.local:4317).
  • Deployment: not deployed. warehouse-infra develop has no terraform/apps.yaml entry and no helm-values/pricing.yaml, so no database, consumer group or gateway route is provisioned. The kind cluster was not checked in this refresh.
  • Observability: service ADR 0005, Adopt the fleet observability standard (logs, metrics, traces), Accepted (2026-10-26). Logs, metrics and traces leave over OTLP/gRPC (OTEL_EXPORTER_OTLP_ENDPOINT, code default localhost:4317; OTEL_SERVICE_NAME); a collector that is down only drops telemetry. The Tier-2 business counter is pricing.quotes.issued (unit {quote}, in internal/adapters/outbound/telemetry/quote_metrics.go), with attribute outcome = issued or rejected and reason on the outcomes that are not a success. No warehouse-infra dashboard queries it yet.

Elsewhere​