Offer & Availability
Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.
Offer & Availability (offer-availability, code OA, tier commerce)
knows what the network can sell and from which node. It owns the network's
own item master (CatalogItem), one Listing per (catalogue item,
node), and the quantity each node currently claims it can ship for that
listing, together with the basis the vendor gave for that number:
PHYSICAL, THROUGHPUT_CONSTRAINED or UNKNOWN. Vendors send that number
as inventory feeds, full or partial; a feed arrives through
vendor-connectivity's in-organization call POST /inventory-feeds and is
applied here atomically (InventoryFeed). A listing is sellable only
while its node is ACTIVE in node-topology. The context publishes seven
CloudEvents types on retailnetwork.offer-availability.events;
delivery-promise and order-sourcing build their availability read
models from them.
This context's pages
| Page | What it covers | ddd-crew tool it follows |
|---|---|---|
| Business Context | The business problem, actors, decisions, and what is out of scope | — (plain-language context) |
| Ubiquitous Language | Catalog Item, Listing, Available Quantity, Availability Basis, Inventory Feed, Full Feed, plus neighbour terms | Bounded Context Canvas (Ubiquitous Language section) |
| Core Domain Chart | Why this context is Supporting | Core Domain Charts |
| Bounded Context Canvas | Purpose, classification, roles, inbound and outbound messages, decisions, open questions | Bounded Context Canvas v5 |
| Context Map | Every upstream and downstream neighbour with pattern and channel | Context Mapping |
| Aggregate Design Canvas | CatalogItem, Listing, InventoryFeed: states, invariants, commands, events | Aggregate Design Canvas v1.1 |
| Domain Events | The seven published and four consumed events, with full CloudEvents types | Domain Message Flow Modelling (message catalogue) |
| Domain Message Flow | Feed applied, feed failed, node suspended, catalogue set-up | Domain Message Flow Modelling |
| EventStorming | Process-level boards and the hotspots the model leaves open | EventStorming Glossary & Cheat Sheet |
| Use Cases | One section per command: trigger, adapter, flow, errors, events, idempotency | — (application-service catalogue) |
| Class Diagram | Proposed domain types and the hexagonal ports and adapters | — (UML) |
| Entity Relationship | Proposed Postgres schema | — (UML / ER) |
| Sequence Diagrams | Adapter to use case to aggregate to outbox, per command | — (UML) |
Service and operations
- Service:
IQVO/offer-availabilityondevelop(6355d98, 2026-10-26): binariescmd/api(REST) andcmd/mcp(read-only MCP), and the console remote inweb/. - Deployment: wired in warehouse-infra develop: a
terraform/apps.yamlentry (database: true,frontend_remote: offer_availability_mfe) andhelm-values/offer-availability.yaml(MCP enabled, gateway path/api/mcp/offer-availability). The cluster itself was not checked in this refresh. - Observability: service ADR 0009,
Adopt the fleet observability standard, Accepted 2026-10-26. Logs, metrics and traces leave
over OTLP to the otel-collector (
OTEL_EXPORTER_OTLP_ENDPOINT, chart defaultotel-collector.observability.svc.cluster.local:4317;OTEL_SERVICE_NAME). The Tier-2 business counter isavailability.inventory_feeds.applied(unit{feed}, ininternal/adapters/outbound/telemetry/feed_metrics.go), with attributeoutcome=applied,superseded,failedorrejectedandreasonon the outcomes that are not a success. The dashboard queries it asavailability_inventory_feeds_applied_totalin warehouse-infra'sterraform/dashboards/contexts/offer-availability.json, byoutcome.
Elsewhere
- Read-only MCP server (service ADR 0007):
cmd/mcp, a second binary serving Streamable HTTP on:8090with no auth; it sources this context's own reads and nothing that writes. Four tools:browse_catalog,get_catalog_item,get_inventory_feed,list_listings. The gateway (Kong) exposes it at/api/mcp/offer-availability, rewritten to the server's/mcpmount. - Console remote (service ADR 0008):
web/, a Vite + React Module Federation remote — federation containeroffer_availability_mfe, gateway mount/mfes/offer-availability/, dev/preview port4018— read-only screens over the existing REST reads, calling only this context's API. - REST contract (as built, from the service repository):
apis/offer-availability/openapi.yaml, rendered under the API reference. - The domain-wide Context Map and Subdomain Classification.
- ADR 0003: declared and measured capability: the declared availability basis this context keeps is one half of it.
- ADR 0007: CloudEvents namespace and the event standard.