Storefront · executive briefings · counted 29 Nov 2026

Storefront executive briefings

From first search to paid order.

The digital storefront: six contexts that face the customer. Content and discovery, pricing, the cart, checkout and payments — each a small bounded context behind a storefront BFF, integrating with the retail network's promises and the warehouse's execution.

bounded contexts
6
briefing decks
6
event routes drawn
5+6 crossing
commits
670
median eng. score
95

Ecosystem briefing · business + architecture

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

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

  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.

Open the Digital storefront deck ↗

part 1 business, 9 slides · part 2 architecture, 16 slides · reveal.js, press → to walk the story

How the pieces talk

Every arrow is a real event route.

Counted from the context registry, not drawn by hand: solid arrows are Kafka routes inside the program; ▲ is the routes a context consumes and ▼ the routes it publishes. 6 more routes cross the program boundary.

DiscoverPriceCartCheckoutPayproduct-content → product-discoverypricing → product-discoverypricing → shopping-cartcheckout → shopping-cartcheckout → customer-paymentsproduct-discovery▲3 ▼0product-discovery: consumes 3 route(s), publishes to 0product-content▲1 ▼1product-content: consumes 1 route(s), publishes to 1pricing▲1 ▼2pricing: consumes 1 route(s), publishes to 2shopping-cart▲3 ▼0shopping-cart: consumes 3 route(s), publishes to 0checkout▲0 ▼2checkout: consumes 0 route(s), publishes to 2customer-payments▲3 ▼0customer-payments: consumes 3 route(s), publishes to 0

The briefings

6 projects, briefed like a business.

Mission, capabilities, events, risks and next steps — quoted from each repository's committed executive deck; every number beside them is counted from git and the GitHub API.

product-content · generic

Product Content turns a bare catalogue item into a full product page and tells search the moment it changes

Product Content enriches the network's catalogue item with everything a product page needs: descriptions, bullets, attributes, media and the category tree — the title stays the item master's, and media upload is out of scope (URLs to static assets only). It owns the ProductContent aggregate and the CategoryTree: content is drafted, revise…

  • Author product content as drafts (description, bullets, attributes, media URLs) with revise and discard before publication
  • Publish and retire content per catalogue item with a monotonically increasing revision; consumers apply a revision only above the last one applied
  • Author the category tree: create, move and rename categories, and publish the whole tree with a bumped version for atomic replacement downstream

publishes

  • com.retailnetwork.storefront.product-content.productcontent.ProductContentPublished
  • com.retailnetwork.storefront.product-content.productcontent.ProductContentRetired
  • com.retailnetwork.storefront.product-content.categorytree.CategoryTreePublished

consumes

  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemCreated
  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemDiscontinued

Named risks. CategoryTreePublished carries the WHOLE tree in one Kafka message — tree growth inflates event size and consumer replacement cost

Next: Exercise the migration path deliberately: a single migration step (0001) holds the entire schema, so the first real schema change will run an untested upgrade path

pricing · core

Pricing owns every number a shopper pays and binds it in an expiring quote, so checkout never re-guesses

Pricing is the Core subdomain of the storefront: it owns what a shopper pays — the list price and sale windows per catalogue item, the delivery charge per service tier, a synthetic tax table, and the binding, immutable, expiring PriceQuote a checkout session is confirmed against. One configured currency (BRL) and integer minor units keep…

  • Publish item prices with state and list price; set the list price idempotently (PUT, no idempotency key needed)
  • Schedule sale windows and compute the effective price, with the clock-driven PublishEffectivePriceOnWindowBoundary policy publishing ItemPriceChanged at window boundaries and on CancelSale
  • Withdraw prices, including automatically via the WithdrawOnDiscontinue policy when a catalogue item is discontinued

publishes

  • com.retailnetwork.storefront.pricing.itemprice.ItemPriceChanged
  • com.retailnetwork.storefront.pricing.itemprice.ItemPriceWithdrawn
  • com.retailnetwork.storefront.pricing.deliverychargeschedule.DeliveryChargeScheduleChanged
  • com.retailnetwork.storefront.pricing.taxtable.TaxTableChanged
  • com.retailnetwork.storefront.pricing.pricequote.PriceQuoteIssued

consumes

  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemCreated
  • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemDiscontinued

Named risks. Core storefront domain whose money math rests on hard assumptions: one configured currency (BRL) and integer minor units are baked in

Next: Deliver the deferred promotions phase (D10): sale windows are currently the only price-mover besides the list price

product-discovery · supporting

Product Discovery folds three upstream contexts into one searchable view, so shoppers see what they can buy

Product Discovery is the Supporting-subdomain read side of the storefront: it folds events from offer-availability, product-content and pricing into one ProductView per catalogue item (title, flags, content, category path, list and effective price, stock, purchasable verdict) and one CategoryView with purchasable counts. Shoppers browse a…

  • Product search with facets, category suggestions and cursor pagination (GET /products)
  • Single product page view (GET /products/{catalogItemId})
  • Browsable category tree with purchasable counts (GET /categories)

publishes

    consumes

    • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemCreated
    • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemDiscontinued
    • com.retailnetwork.commerce.offer-availability.listing.ListingAvailabilityChanged
    • com.retailnetwork.commerce.offer-availability.listing.ListingCreated

    Named risks. Freshness is wholly event-driven: consumer lag or a dropped upstream event leaves stale ProductViews until the (default-off) rebuild Job runs

    Next: Exercise the default-off rebuild Helm Job (ADR 0006) as a scheduled projection-integrity drill

    shopping-cart · supporting

    Shopping Cart keeps a shopper's intent current, so full cost and delivery choice show before checkout

    Shopping Cart holds a shopper's intent between browsing and purchase: cart lines, the destination postal prefix, the delivery quote delivery-promise returned per shipment group, the shopper's tier selection per group, and a labelled, non-binding estimate (effective prices + selected tier charges + tax band) so the total cost is visible up…

    • Create, merge and list carts per shopper
    • Manage cart lines (add, set quantity 1-99, remove; at most 100 lines)
    • Hold the destination postal prefix and derive shipment groups

    publishes

    • com.retailnetwork.storefront.shopping-cart.cart.CartAbandoned
    • com.retailnetwork.storefront.shopping-cart.cart.CartCheckedOut
    • com.retailnetwork.storefront.shopping-cart.cart.CartDeliveryQuoted
    • com.retailnetwork.storefront.shopping-cart.cart.CartLineAdded

    consumes

    • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemCreated
    • com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemDiscontinued
    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutCompleted
    • com.retailnetwork.storefront.pricing.deliverychargeschedule.DeliveryChargeScheduleChanged

    Named risks. The estimate is non-binding by design; divergence from checkout's binding quote at confirmation is an accepted UX risk

    Next: Work the before-first-release checklist and move the 0.1.0 REST spec toward a stable 1.0.0

    checkout · supporting

    Checkout runs each purchase as one saga, so no order lands without its payment held and its price confirmed

    Checkout owns the purchase saga from review to placed order: one transaction across price, payment and the network's promise confirmation. It authorizes payment before placing the order (compensatable: void), places the order as the pivot step, and drives retriable steps through clock-run policies; while a place-order outcome is unknown,…

    • Open a checkout session from a checkout-ready cart (binding quote request)
    • Run the saga: authorize payment, place the order (pivot), then settle via events and policies
    • Compensate: void the authorization on decline or on a definitive requote (409)

    publishes

    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutCompleted
    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutDeclined
    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutFailed
    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutOpened
    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutPlacementInDoubt
    • com.retailnetwork.storefront.checkout.checkoutsession.CheckoutRequoteRequired

    Named risks. In-doubt placements hold money: until the resolver settles an unknown place-order outcome, the authorization stays held under the semantic lock

    Next: Move the 0.1.0 REST spec to 1.0.0 via the before-first-release checklist

    customer-payments · generic

    Customer payments charges only for what ships and refunds what is lost, with the provider behind one port

    Customer Payments moves money with the shipment facts: it authorizes the quote total at checkout, captures each shipment group's allocation when it ships, releases on cancellation, refunds lost or returned packages, and re-authorizes uncaptured allocations before the provider's authorization validity expires. The payment provider sits beh…

    • Authorize the quote total per checkout session (or decline)
    • Capture each shipment group's allocation when it ships (FulfillmentShipped)
    • Release allocations on cancellation or unsourceable fulfilment; void the whole authorization

    publishes

    • com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorizationExpired
    • com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentAuthorized
    • com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentCaptured
    • com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentDeclined
    • com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReauthorized
    • com.retailnetwork.storefront.customer-payments.paymentauthorization.PaymentReleased

    consumes

    • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled
    • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentShipped
    • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentUnsourceable
    • com.retailnetwork.logistics.shipping-and-tracking.journey.PackageLost

    Named risks. The simulator stands in for a real PSP: partial captures, provider timeouts and webhook-style reconciliation are unexercised

    Next: Swap the payment-provider-simulator for a real PSP adapter behind the existing Authorize/Capture/Void/Refund/Reauthorize port