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

Read the architecture guide →

Building Block View

Static decomposition of BookWorm into owned business capabilities, services, and shared foundations.

Architecture

This chapter documents BookWorm’s static structure from the whole platform down to service internals and checkout orchestration. It aligns with C4 Container and Component views and isolates ownership boundaries from runtime message sequences and Azure deployment placement.

Decomposition hierarchy

BookWorm uses three progressive zoom levels so you inspect only the depth required for your task.

This diagram shows how each Building Block View level zooms into the next level of static structure.

Loading graph...

Zoom levelDocumentAbstraction levelScope
Level 1Whitebox Overall SystemCustom DocWhitebox Overall SystemLevel-1 decomposition of BookWorm into its top-level business capabilities and shared foundation.Ownerarchitecture-enabling-teamOpen docSystem / Container overviewEdge tier (API Gateway, Storefront, Commerce, Backoffice), six backend bounded contexts, shared foundation, and boundary rules
Level 2Building Block View Level 2Custom DocBuilding Block View Level 2Static responsibilities, interfaces, and data ownership within BookWorm's major capabilities.Ownerarchitecture-enabling-teamOpen docContainer / Service detailInternal services, dedicated data stores (PostgreSQL, Cosmos DB, Redis, Qdrant, Azure Blob, Durable Task Scheduler), and source paths
Level 3Building Block View Level 3Custom DocBuilding Block View Level 3Level-3 view of Finance workflow coordination.Ownerarchitecture-enabling-teamOpen docComponent detailSelective deep dive into Finance (BookWorm.Finance) Azure Durable Functions orchestration components and contracts

Selective refinement rationale

ADRDecision summaryStatus
ADR-BW-001: Decompose BookWorm by business capabilityDecision Recordv1.0.0ADR-BW-001: Decompose BookWorm by business capabilityAlign independently deployable building blocks with bounded contexts rather than a shared business layer.Ownerarchitecture-enabling-teamOpen docsDecompose BookWorm by bounded context and business ownershipProposed
ADR-BW-003: Reuse Aspire and shared technical service defaultsDecision Recordv1.0.0ADR-BW-003: Reuse Aspire and shared technical service defaultsShare orchestration and technical host configuration without moving business rules into the platform foundation.Ownerplatform-engineering-teamOpen docsCentralize hosting, observability, and resilience in shared platform infrastructureProposed
ADR-BW-006: Keep business state and persistence access capability-ownedDecision Recordv1.0.0ADR-BW-006: Keep business state and persistence access capability-ownedPreserve one accountable owner for each business model and integrate through contracts rather than shared mutable tables...Ownerarchitecture-enabling-teamOpen docsKeep authoritative persistence inside the owning capabilityProposed
ADR-005: Keep Finance workflow outcomes separate from Order statusDecision Recordv1.0.0ADR-005: Keep Finance workflow outcomes separate from Order statusFinance reports cleanup outcomes and tracks its own saga lifecycle while Ordering remains authoritative for Order comple...Ownercommerce-fulfillment-teamOpen docsKeep Finance workflow outcomes separate from authoritative Ordering statusAccepted