Skip to main content
⚠️ Study project — an educational DDD exercise. Not a production system.

warehouse-systems · Storefront · Generic subdomain

Storefront BFF

The stateless storefront edge: composes six upstream REST services under /api/storefront (Generic, warehouse-systems).

The only storefront edge: one stateless Go service that turns each screen and click of the shop into calls to six upstream REST services (product discovery, delivery promise, pricing, cart, checkout and customer ordering). It enforces a closed route allowlist, per-route time budgets, deterministic idempotency keys, a state cookie that is not authentication, and it refuses card data. It has no database, no events and logs no bodies.

The BFF stores nothing and trusts nothing: it calls only 25 allowlisted upstream routes, never retries a command, and no card number ever leaves the process.

The six upstreams →