Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Authoritative Redis key-value store owned by the Shopping bounded context for customer-scoped pre-checkout shopping baskets.

DatabaseredisResidency: eastasiaRetention: transientAccess Mode: readWriteDatabase

Purpose & Ownership Boundary

Basket Database is the authoritative Redis key-value store owned exclusively by Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs in the Shopping bounded context. Redis was chosen for low-latency, customer-scoped key-value persistence of ephemeral pre-checkout BasketEntityv1.0.0BasketCustomer-scoped, mutable pre-order collection of requested books and quantities managed prior to checkout.Ownercommerce-fulfillment-teamOpen docs state without requiring a relational SQL database, while delegating product metadata to Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs and accepted orders to Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs.

Data Store Profile

PropertyValue
Bounded Context / OwnerShopping — Commerce Fulfillment TeamTeamCommerce Fulfillment TeamStream-Aligned team owning customer shopping baskets, checkout coordination, order lifecycle, and financial saga orchest...Open docs
Engine / TechnologyRedis (Azure Managed Redis in cloud; Redis container locally)
Store TypeDatabase (Key-Value)
Primary Writer(s)Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Primary Reader(s)Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Authoritative / Source of TruthYes (for active pre-checkout baskets)
Data ClassificationInternal
Retention / TTL PolicyTransient (persisted until replaced, explicitly deleted, or cleared after checkout)

Logical Data Layout & Key Patterns

Key PatternStored DataTTL / EvictionInvalidation / Update Trigger
basket:{userId}UTF-8 JSON BasketEntityv1.0.0BasketCustomer-scoped, mutable pre-order collection of requested books and quantities managed prior to checkout.Ownercommerce-fulfillment-teamOpen docs containing customer id (uuid) and non-empty Basket ItemEntityv1.0.0Basket ItemChild entry within a Basket pairing a Catalog book identifier with a positive requested quantity.Ownercommerce-fulfillment-teamOpen docs array (id, quantity)No explicit TTL set; persists until mutated or deletedFull-document atomic replacement (SET) on basket updates; deleted (DEL) by customer request or post-checkout Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs cleanup.
Integration idempotency keys24-hour Kafka message deduplication markers24 hoursAutomatic TTL expiration after consumer processing.

Note: Neither the Aspire Redis configuration nor the generated Azure Redis templates declare an explicit eviction policy; verify any externally configured memory-pressure eviction policy before assuming indefinite idle retention.

Consistency, Isolation & Security Guardrails

Warning

Shared Redis Key-Prefix & Flush Isolation: Basket Database shares the redis cluster with Catalog CacheContainerv1.0.0Catalog CacheNon-authoritative FusionCache and Redis caching layer owned by the Catalog bounded context for fast book detail lookups ...Ownercatalog-experience-teamDiagramOpen docs, Order Cache and Distributed LocksContainerv1.0.0Order Cache and Distributed LocksRedis-backed coordination and caching slice owned by the Ordering bounded context for buyer-scoped creation locks, HTTP ...Ownercommerce-fulfillment-teamDiagramOpen docs, Rating CacheContainerv1.0.0Rating CacheNon-authoritative FusionCache and Redis caching layer owned by the Reviews bounded context for AI-generated book feedbac...Ownercatalog-experience-teamDiagramOpen docs, and Notification idempotency markers. Because basket:{userId} is authoritative for active pre-checkout carts, flushing the shared Redis instance permanently drops all active customer baskets alongside cached responses and distributed locks. Only Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs may read or write basket:* keys.

Operational & Resilience Notes

Architecture Visualizations

Loading graph...