Data ownership
The source-of-truth data stores in the default catalog and the rules for reading and writing business state.
Every durable business concept has an owning system and a source-of-truth store. Other systems should depend on published contracts instead of reaching into another system’s data store.
Source-of-truth stores
| Data store | Owner | Business data |
|---|---|---|
| Product DatabaseContainerv1.0.0Product DatabasePostgreSQL database that is the system of record for all product data.Ownerproduct-platformDiagramOpen docs | Product Catalog SystemSystemv1.0.0Product Catalog SystemInternal system that is the source of truth for product data. Owns the product database and publishes product change eve...Ownerproduct-platformDiagramOpen docs | Products, product attributes and catalog change outbox. |
| Search IndexContainerv1.0.0Search IndexThe denormalised, search-optimised index of products that powers product search.Ownersearch-platformDiagramOpen docs | Search SystemSystemv1.0.0Search SystemInternal system that keeps product data searchable. Consumes product change events from the Product Catalog System, main...Ownersearch-platformDiagramOpen docs | Search-optimised product documents. |
| Cart DatabaseContainerv1.0.0Cart DatabasePostgreSQL database that is the system of record for shopping carts and their items.Ownershopping-platformDiagramOpen docs | Cart SystemSystemv1.0.0Cart SystemInternal system that owns the customer's shopping cart and the checkout flow. It is the source of truth for cart content...Ownershopping-platformDiagramOpen docs | Active shopping carts and checkout state. |
| Promotion DatabaseContainerv1.0.0Promotion DatabasePostgreSQL store of promotion and discount rules.Ownershopping-platformDiagramOpen docs | Promotion SystemSystemv1.0.0Promotion SystemInternal system that calculates the discounts and promotions that apply to a cart. It owns promotion rules and returns c...Ownershopping-platformDiagramOpen docs | Promotion rules and discount configuration. |
| Order DatabaseContainerv1.0.0Order DatabasePostgreSQL database that is the system of record for orders and their items.Ownerordering-platformDiagramOpen docs | Order Management SystemSystemv1.0.0Order Management SystemInternal system that is the source of truth for orders. It creates orders, tracks their lifecycle, and publishes events ...Ownerordering-platformDiagramOpen docs | Orders and order lifecycle state. |
| Payment DatabaseContainerv1.0.0Payment DatabasePostgreSQL database that is the system of record for payments and refunds.Ownerpayments-platformDiagramOpen docs | Payment Processing SystemSystemv1.0.0Payment Processing SystemInternal system that orchestrates payment for orders. It authorizes payments, requests charges from the external payment...Ownerpayments-platformDiagramOpen docs | Payment intents, charge outcomes and refunds. |
| Inventory DatabaseContainerv1.0.0Inventory DatabasePostgreSQL database that is the system of record for stock levels and reservations.Ownerfulfilment-platformDiagramOpen docs | Inventory SystemSystemv1.0.0Inventory SystemInternal system that tracks stock and reserves it for orders. It is the source of truth for available inventory and conf...Ownerfulfilment-platformDiagramOpen docs | Stock levels and reservations. |
| Warehouse DatabaseContainerv1.0.0Warehouse DatabasePostgreSQL database that stores picking jobs and their status.Ownerfulfilment-platformDiagramOpen docs | Warehouse SystemSystemv1.0.0Warehouse SystemInternal system that picks and packs orders in the warehouse. It reacts to completed orders, organises picking, and sign...Ownerfulfilment-platformDiagramOpen docs | Picking and packing work. |
| Customer DatabaseContainerv1.0.0Customer DatabasePostgreSQL database that is the system of record for all customer profile data.Ownercustomer-platformDiagramOpen docs | Customer Management SystemSystemv1.0.0Customer Management SystemInternal system that is the source of truth for customer profile data. Owns the customer database and publishes customer...Ownercustomer-platformDiagramOpen docs | Customer profiles. |
| Review DatabaseContainerv1.0.0Review DatabasePostgreSQL database that is the system of record for reviews and their moderation state.Ownerreviews-platformDiagramOpen docs | Reviews & RatingsDomainv1.0.0Reviews & RatingsThe Reviews & Ratings domain owns customer feedback on products — how reviews are submitted, moderated, published and ag...Ownerreviews-platformDiagramOpen docs | Reviews and moderation state. |
| Rating CacheContainerv1.0.0Rating CacheRedis cache that serves each product's aggregate star rating with low latency.Ownerreviews-platformDiagramOpen docs | Reviews & RatingsDomainv1.0.0Reviews & RatingsThe Reviews & Ratings domain owns customer feedback on products — how reviews are submitted, moderated, published and ag...Ownerreviews-platformDiagramOpen docs | Product rating read model. |
Read model pattern
Search SystemSystemv1.0.0Search SystemInternal system that keeps product data searchable. Consumes product change events from the Product Catalog System, main...Ownersearch-platformDiagramOpen docs and Rating CacheContainerv1.0.0Rating CacheRedis cache that serves each product's aggregate star rating with low latency.Ownerreviews-platformDiagramOpen docs are read models. They do not own the original facts. They rebuild their state from events such as Product CreatedEventv1.0.0Product CreatedPublished when a new product has been added to the catalog. Ownerproduct-platformSchemaDiagramOpen docs, Product UpdatedEventv1.0.0Product UpdatedPublished when an existing product's data has changed. Ownerproduct-platformSchemaDiagramOpen docs, Review PublishedEventv1.0.0Review PublishedPublished when a submitted review passes moderation and becomes visible on the storefront. Ownerreviews-platformSchemaDiagramOpen docs and Rating UpdatedEventv1.0.0Rating UpdatedPublished when a product's aggregate rating changes as a result of a newly published review. Ownerreviews-platformSchemaDiagramOpen docs.
Write rule
Only the owning system writes its source-of-truth store. Cross-system updates should be commands or events. For example, checkout asks fulfilment to reserve stock with Reserve InventoryCommandv1.0.0Reserve InventoryCommand to reserve stock for the items in a checked-out cart. Ownerordering-platformSchemaDiagramOpen docs rather than writing Inventory DatabaseContainerv1.0.0Inventory DatabasePostgreSQL database that is the system of record for stock levels and reservations.Ownerfulfilment-platformDiagramOpen docs directly.
Consistency rule
User-facing flows should make the consistency model explicit. Checkout needs coordinated confirmation across inventory, payment and order creation, so it uses the Checkout SagaFlowv1.0.0Checkout SagaHow the Checkout Orchestrator turns a checked-out cart into an order — reserving inventory, authorizing payment and crea...Ownerordering-platformView flowOpen docs. Search indexing can lag product writes, so it uses asynchronous product events.