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 level | Document | Abstraction level | Scope |
|---|---|---|---|
| Level 1 | Whitebox Overall SystemCustom DocWhitebox Overall SystemLevel-1 decomposition of BookWorm into its top-level business capabilities and shared foundation.Ownerarchitecture-enabling-teamOpen doc | System / Container overview | Edge tier (API Gateway, Storefront, Commerce, Backoffice), six backend bounded contexts, shared foundation, and boundary rules |
| Level 2 | Building Block View Level 2Custom DocBuilding Block View Level 2Static responsibilities, interfaces, and data ownership within BookWorm's major capabilities.Ownerarchitecture-enabling-teamOpen doc | Container / Service detail | Internal services, dedicated data stores (PostgreSQL, Cosmos DB, Redis, Qdrant, Azure Blob, Durable Task Scheduler), and source paths |
| Level 3 | Building Block View Level 3Custom DocBuilding Block View Level 3Level-3 view of Finance workflow coordination.Ownerarchitecture-enabling-teamOpen doc | Component detail | Selective deep dive into Finance (BookWorm.Finance) Azure Durable Functions orchestration components and contracts |
Selective refinement rationale
- Capability-first decomposition: BookWorm groups code by business ownership (CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs, ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs, OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs, ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs, ConversationalDomainv1.0.0ConversationalRoutes BookWorm customer requests through privacy-filtered AI agents for catalog-backed book discovery and read-only sto...Ownerai-capabilities-teamDiagramOpen docs, PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs) rather than technical tiers, preventing a shared business middle layer.
- Selective Level 3 zoom: Only Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs expands to Level 3 because it coordinates multi-step checkout outcomes across OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs, ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs, and PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs.
- Separation of concerns: External neighbors appear in Technical ContextCustom DocTechnical ContextExternal-facing channels and protocols that realize the BookWorm business context.Ownerarchitecture-enabling-teamOpen doc, step-by-step message sequences appear in Runtime ViewCustom DocRuntime ViewRepresentative BookWorm runtime scenarios across commerce, discovery, customer feedback, and platform operations.Ownerarchitecture-enabling-teamOpen doc, and cloud hosting appears in Deployment ViewCustom DocDeployment ViewHosting environments, infrastructure boundaries, and workload placement.Ownerplatform-engineering-teamOpen doc.
Related architecture decisions
| ADR | Decision summary | Status |
|---|---|---|
| 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 docs | Decompose BookWorm by bounded context and business ownership | Proposed |
| 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 docs | Centralize hosting, observability, and resilience in shared platform infrastructure | Proposed |
| 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 docs | Keep authoritative persistence inside the owning capability | Proposed |
| 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 docs | Keep Finance workflow outcomes separate from authoritative Ordering status | Accepted |