warehouse-systems · ecosystem executive briefing

Digital storefront

Honest speed: a real date on the product page, and money only when it ships
6 bounded contexts5 event routes between thembusiness + architecture

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026

the short version · read this if nothing else

The storefront shows only delivery dates the network can keep, and charges only for what has actually shipped.

1

The product page shows a real delivery date and a charge per tier, so the total is never a surprise.

2

Payment is authorized at checkout and captured per shipment group, only when that group ships.

3

It is built on develop and registered in the infra app registry; no live traffic is claimed.

The ask

Pick the first real-world test: swap the payment simulator for a real provider adapter, and load-test checkout's in-doubt path.

part 1 · the business · why it exists

The storefront owns what a shopper sees and pays; the network owns what can be promised

The digital storefront is what a shopper sees and pays: search, a product page with a real delivery date priced per delivery tier, a cart, checkout and payment. It sits inside the retail-network organisation as its own domain. The network decides what can be promised and how it is fulfilled. The storefront never stores personal or card data, only a shopper id, an address id and payment tokens.

Today

Six bounded contexts, a Go edge service and a React web app are built on develop. All nine are in the k3s reference cluster's app registry.

The catch

Payments run against a simulator, there is no authentication anywhere, and nothing has carried a real shopper yet.

part 1 · the business · who it is for

Several roles use it, from the shopper to the network team that sits upstream

Shopper

needs

Find an item, see when it arrives and what it costs, and pay with confidence.

served by

product-discovery, pricing, shopping-cart and checkout, reached through storefront-web.

Catalogue editor

needs

Write descriptions, attributes and media for items the network already knows.

served by

product-content drafts, publishes and retires content and the category tree.

Pricing owner

needs

Set item prices, sale windows, delivery charges per tier and the tax table.

served by

pricing publishes each change as an event and issues binding, expiring quotes.

Payments operator

needs

See what was held, captured, released or refunded, and retry a failed refund.

served by

customer-payments, with REST reads and a read-only MCP server.

Retail-network team

needs

Know the storefront only uses published routes and never reaches into network internals.

served by

A hard boundary: only open-host routes and retailnetwork topics, enforced by tests.

part 1 · the business · A shopper's visit

One visit runs from search to a captured payment, and money waits until the shipment ships

1

Search

product-discovery

Search reads ProductView projections folded from network, content and price events.

2

Date and price

pricing

Product page joins the network's delivery date with the charge per tier from pricing.

3

Cart and tier

shopping-cart

Cart holds a delivery quote per shipment group, the tier choice and an estimate.

4

Binding quote

checkout

Checkout opens a session on a binding PriceQuote; confirming after expiry is refused.

5

Authorize

customer-payments

A hold for the total is placed with the provider using a token, never a card number.

6

Place order

retail network

customer-ordering places the order: the one pivot step the saga cannot undo.

7

Void on failure

checkout

On decline or a late requote, the hold is voided and the shopper can try again.

8

Capture on ship

customer-payments

FulfillmentShipped triggers PaymentCaptured for that shipment group only.

A shopper's visit · press → to walk the story step by step · each chip is the bounded context that owns the step

part 1 · the business · what it can do

Capabilities cover finding, pricing, holding, buying and paying

Find and learn
Search with facetsFull-text search over projected products, with category suggestions.product-discovery
Category browseCategory tree with counts of purchasable items.product-discovery
Product contentDescriptions, bullets, attributes and media links per item.product-content
Category treeThe whole tree is published as one version for atomic replacement.product-content
Price and tax
Prices and sale windowsList price per item, with sale windows that start and end on the clock.pricing
Delivery charge per tierThe price of speed, published per delivery tier.pricing
Synthetic tax tableA study table, not a tax engine and not fiscal compliance.pricing
Binding price quoteImmutable quote with lines, charges, tax and total, which expires.pricing
Hold intent
Cart linesAdd, change and remove lines; one line per item.shopping-cart
Delivery quote per groupQuotes dates per shipment group from the network's delivery promise.shopping-cart
Tier choiceThe shopper picks a tier per group; checkout-ready when all are chosen.shopping-cart
Labelled estimatePrices, tier charges and a tax band, shown as non-binding.shopping-cart
Buy safely
Purchase sagaAuthorize, place the order, then settle through events and policies.checkout
Undo on failureVoids the hold on decline or when the network asks for a requote.checkout
In-doubt resolverAn unknown placement outcome is locked and settled by replay.checkout
Move money
Authorize at checkoutHolds the quote total behind a provider anti-corruption port.customer-payments
Capture per groupCaptures each shipment group's share when that group ships.customer-payments
Release and refundReleases on cancel; refunds lost or returned packages.customer-payments
Re-authorizeRenews uncaptured holds before the provider's validity ends.customer-payments
CoreSupportingGeneric· tile edge = DDD subdomain class of the owning context (gold = the competitive edge)
part 1 · the business · what is different

Honest speed rests on real delivery dates and on charging only at shipment

A real date, priced per tier

The product page shows the delivery date the network has a feasible path for, with each tier's charge beside it, never a vague 'N business days'.

shopping-cart ADR 0007; storefront-bff ADR 0005

Money moves when it ships

Authorize at checkout, capture each shipment group only when it ships, release on cancel, refund if lost or returned, re-authorize before expiry.

customer-payments; storefront decision D5

A purchase cannot half-happen

Checkout runs a saga: authorize, place the order as the pivot, void if it fails. An unknown outcome is locked and settled by replay, not retried.

checkout ADR 0002 and ADR 0003; benchmarks saga row

No personal or card data held

The storefront keeps only shopperId, shipToAddressId and payment tokens. The web page posts a scenario token, never a card number, under a strict CSP.

storefront-web ADR 0003, ADR 0004; storefront-bff ADR 0002
part 1 · the business · the house rules

House rules keep the shopper's total, data and money honest

1
Authorize before placing the order; capture only when a group shipsThe shopper pays for what actually ships, and a failed order leaves no money moved.
customer-payments
2
Show the total cost, including delivery and tax, before checkoutExtra costs are the top reason carts are abandoned in the benchmark research.
shopping-cart
3
A purchase is confirmed against a binding quote that expiresA price change between cart and checkout is visible before the shopper confirms.
pricing
4
Show delivery as a date range, never as 'N business days'Research shows shoppers read a date as a promise, so only dates the network can keep are shown.
shopping-cart
5
Never store personal data or card dataOnly shopperId, shipToAddressId and payment tokens cross the storefront boundary.
checkout
6
An unknown order outcome is locked, never retried blindlyWhile the placement is in doubt, neither a void nor a second attempt can double-charge or double-order.
checkout
part 1 · the business · against the market

Against large storefront practice the honest-delivery core is ahead and the edges are thin

PartialLarge e-commerce storefront practicevs Large retail storefronts and composable-commerce stacks, shown as capability lists

Where we match or lead

  • Real delivery date plus a charge per tier on the product page, as the benchmarks recommend
  • Authorize at checkout and capture per shipment group, the pattern commerce help pages describe
  • Total cost shown up front: labelled estimate in the cart, binding quote at checkout
  • Card data never touched: payment tokens only, strict CSP, performance budgets in CI

Gaps to close

  • High Payments run against a simulator; no real provider adapter exists yet
  • Medium Promotions, reviews and recommendations are named but later phases
  • Medium No sign-in or authentication: guest-first, sign-in is a synthetic e-mail lookup
  • Low Out-of-stock purchase is not possible by design; items show as unavailable

Leader capabilities are public research and vendor-published material; gaps reflect repo docs reviewed in November 2026. Our judgement, not a certification.

part 2

Under the hood

How the 6 contexts are cut, how they talk to each other, and what holds them together.
1 · principles2 · context map3 · who listens to whom4 · layers & patterns5 · seams6 · decisions & platform7 · risks & roadmap
6bounded contexts
5event routes inside
47decisions on record
2MCP servers
part 2 · architecture · the ground rules

Principles keep the contexts small, independent and checkable by tests

Own data, publish by outbox

Each context has its own Postgres. Events leave through a transactional outbox and consumers dedupe on the CloudEvents id.

Local read models, few calls

Data used in a decision is a local, event-fed copy. Synchronous calls exist only where a shopper's request needs an answer.

One edge with no domain model

The browser reaches only storefront-bff, which has no database and no Kafka. The web app talks to nothing else.

Rules as executable tests

Layering, no body logging, no card data and no call to restricted network routes are fitness tests that fail the build.

Translate at the borders

The payment provider sits behind a port, and checkout translates network terms. A swap changes one adapter, not the model.

part 2 · architecture · the context map

The six contexts lean on the network's published facts and each other's contracts

Find and learnReads for browsing and search, fedby the network and by contentPrice and hold intentTurns an item into a priced line,a delivery quote and a tier choicePurchase sagaOne transaction across price,payment and the network's orderPay and settleHolds, captures, releases andrefunds money behind a providerNext doorother ecosystems: dashed pills,real Kafka routesproduct-contentproduct-discoverypricingshopping-cartcheckoutcustomer-paymentsoffer-availabilityorder-sourcingshipping-and-tracking
CoreSupportingGeneric· every curve is a real event route (producer → dot = consumer), derived from the AsyncAPI contracts · dashed ring = busiest publisher
part 2 · architecture · who listens to whom

5 event routes wire 17% of the possible pairs, so most contexts stay independent of most others

LISTENS TO → (columns)PUBLISHES ↓ (rows)product-contentproduct-contentproduct-discoveryproduct-discoverypricingpricingshopping-cartshopping-cartcheckoutcheckoutcustomer-paymentscustomer-payments5event routes among 6 contexts17%of the 30 possible pairs are wired3 · 3pure sources · pure sinks (listen only)cell colour = subdomain class of the publisher
part 2 · architecture · the hubs

checkout is the most listened-to context: 2 neighbours react to what it publishes, and product-discovery follows 2 sources

HEARD BY MOST · CONTEXTS LISTENINGLISTENS TO MOST · SOURCES FOLLOWEDcheckout 2pricing 2product-content 12 product-discovery2 shopping-cart1 customer-payments
part 2 · architecture · where we invest

Pricing is the core; payments and content are generic, and the rest supports conversion

Core · 1

Build in-house, invest the most: this is the competitive edge.
  • pricingOwns what a shopper pays: the list price and sale windows per catalogue item…

Supporting · 3

Needed and specific to us: build well, keep it simple.
product-discoveryshopping-cartcheckout

Generic · 2

Solved elsewhere: keep boring, or swap for a product.
product-contentcustomer-payments
part 2 · architecture · the layers

The layers run from reading to buying: find, price, purchase, pay

Find and learn

Reads for browsing and search, fed by the network and by content authors

product-contentproduct-discovery
↓ 0 routes flow down across this line · ↑ 1 flow back up

Price and hold intent

Turns an item into a priced line, a delivery quote and a tier choice

pricingshopping-cart
↓ 0 routes flow down across this line · ↑ 1 flow back up

Purchase saga

One transaction across price, payment and the network's order placement

checkout
↓ 1 routes flow down across this line

Pay and settle

Holds, captures, releases and refunds money behind a provider port

customer-payments
part 2 · architecture · how the contexts depend on each other

8 relationships show who bends to whom, in 4 DDD patterns

offer-availability
Conformist
product-discovery

Catalogue and listing facts are taken as published; only catalogItemId joins them.

product-content
Customer/Supplier
product-discovery

Content and category-tree events feed the search views, with REST for rebuilds.

pricing
Customer/Supplier
shopping-cart

Price, tax and delivery-charge events keep the cart's estimate current.

delivery-promise
Open Host Service
shopping-cart

The cart asks the network for delivery quotes through an open quote route.

customer-ordering
Anti-Corruption Layer
checkout

Checkout translates network order and requote terms into storefront terms.

customer-payments
Customer/Supplier
checkout

Checkout calls authorize and void; payments owns the money rules.

order-sourcing
Conformist
customer-payments

Shipped, cancelled and unsourceable facts decide capture and release.

payment-provider-simulator
Anti-Corruption Layer
customer-payments

Provider vocabulary stays in one adapter; a real provider changes only its URL.

part 2 · architecture · the seams between ecosystems

Two doors lead out: the retail network for promises and orders, a payment provider for money

The only fleet service thattalks to the retailnetwork, through its VendorAPI…Calls open-host routes ofdelivery-promise andcustomer-ordering…WMS and WESinside the four walls21 CONTEXTSRetail networkbetween the walls11 CONTEXTSDigital storefrontin the shopper's hands6 CONTEXTSYOU ARE HEREequipment control (WCS): notbuiltdelivery partners and carriersthe payment provider
Retail network · via

checkoutshopping-cartpricingproduct-discoverycustomer-payments Calls open-host routes of delivery-promise and customer-ordering; consumes network facts. The network never calls back.

an external system · via

customer-payments A payment provider, reached through an anti-corruption port. The simulator stands in with deterministic test tokens.

part 2 · architecture · the decisions that shaped it

The decisions behind the shape: in-org domain, no auth, saga payments, one edge

Storefront D1

The storefront is its own domain inside the network org

It may consume retailnetwork topics and open-host routes; the network never depends on it and no warehouse topic is touched.

Storefront D4

No authentication; guest-first flows

Matches the estate rule; sign-in is a synthetic shopper lookup by e-mail, and identity is deferred.

Storefront D5

Authorize before placing, capture per shipment group

Money follows shipment facts: release on cancel, refund on lost or returned packages.

Storefront D6

The storefront records the price; ordering stays price-free

Pricing and the binding quote live in the storefront, so the network's customer-ordering model is not changed.

Storefront D8; storefront-bff

React SSR web behind a Go BFF, the only edge

The browser reaches one service under /api/storefront, which holds no domain model, database or Kafka.

Storefront D9

Search is Postgres full-text behind a port

Good enough for the study, and the port lets a dedicated engine replace it as the catalogue grows.

part 2 · architecture · what every context shares

Every context shares the same events, observability, quality gates and agent surfaces

CloudEvents over Kafka

Structured CloudEvents 1.0, a transactional outbox and an inbox in each context.

Fleet observability

Traces, metrics and logs over OTLP, adopted by all six contexts, the BFF and the simulator.

Executable quality gates

Coverage gate, mutation tests, architecture tests and API linting; web adds Lighthouse budgets.

Agent surfaces

A2A agents on the six contexts; read-only MCP servers on checkout and customer-payments.

2/6contexts with an MCP server
6/6contexts with an A2A agent
14database migrations
25BDD feature files

Counted from the repositories (develop). REST and MCP endpoints are unauthenticated fleet-wide by decision: a known risk, not a capability.

part 2 · architecture · by the numbers

The model in numbers: contexts, events and decisions counted from the repositories

BOUNDED CONTEXTS21WMS and WES11Retail network6Digital storefrontEVENTS PUBLISHED151WMS and WES102Retail network27Digital storefrontDECISIONS ON RECORD585WMS and WES160Retail network47Digital storefrontBDD FEATURE FILES132WMS and WES82Retail network25Digital storefront

Counted, not typed: contexts and decisions from the registry on develop, events and feature files from each context's verified profile. Highlighted = this ecosystem.

part 2 · architecture · what could go wrong · and what we do about it

The risks that stand out: no auth, simulated payments, coupled checkout and stale views

No authentication anywhere

Every REST, MCP and A2A endpoint is open, and the cookie only holds state, not identity. Fine for a study, a gap beyond the cluster.

→

No mitigation on the roadmap yet: this one needs an owner.

Payments only meet a simulator

Partial captures, provider timeouts and reconciliation against real statements are unexercised in customer-payments.

→

Add a real provider adapter behind the existing port, plus a provider-statement reconciliation report.

Checkout is tightly coupled

It consumes no events and reads siblings synchronously, so an outage stalls buying; an in-doubt placement keeps a hold.

→

Load-test the PLACING lock and the in-doubt resolver under broker and provider latency.

Search views can go stale

product-discovery is wholly event-fed; a lagging consumer or dropped event leaves old product views until a rebuild.

→

Run the default-off rebuild Job as a scheduled drill; it snapshots the network reads, then replays events.

part 2 · architecture · what comes next

The next moves go from proving checkout to a real provider and promotions

NOW1Prove the in-doubtcheckout pathLoad-test the PLACINGsemantic lock and thein-doubt resolver underbroker and providerlatency before any firstrelease.NEXT2Cut first releasesWork each context'sbefore-first-releasechecklist and move theREST specs from 0.1.0toward a stable 1.0.0.NEXT3Drill theprojection rebuildExercise the default-offrebuild Job inproduct-discovery as ascheduledprojection-integritycheck.LATER4Swap in a realproviderWrite a realpayment-provider adapterbehind the Authorize,Capture, Void, Refund,Reauthorize port and addstatementreconciliation.LATER5Promotions andnotificationsAdd promotions insidepricing (deferred byD10) and shoppernotifications, whichneed group status factsfrom the network.
the decision we need

Pick the first real-world test: swap the payment simulator for a real provider adapter, and load-test checkout's in-doubt path.

WHAT ISSix bounded contexts, a Go edgeservice and a React web app arebuilt on develop. All nine are inthe k3s reference cluster's appTHE CATCHPayments run against a simulator,there is no authentication anywhere,and nothing has carried a realshopper yet.WHAT COULD BEA storefront whose payments runthrough a real provider, withpromotions and notifications addedon top of the same contexts.
Why it matters

The storefront shows only delivery dates the network can keep, and charges only for what has actually shipped.

appendix · for the engineers in the room

The roster: every context, one row, one click to its own briefing

ContextClassOutInADRsDoors
product-contentGeneric327 · A2A
product-discoverySupporting0118 · A2A
pricingCore528 · A2A
shopping-cartSupporting478 · A2A
checkoutSupporting709MCP · A2A
customer-paymentsGeneric867MCP · A2A

Out / In = event types published / consumed (from each context's profile). Doors = MCP server and A2A agent. Links open the per-context executive briefing.