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

Read the architecture guide →

Solution Strategy

Executive summary of the architectural decisions that satisfy BookWorm's quality goals and constraints.

Architecture

BookWorm uses a modular, contract-driven architecture to support correct commerce, independent change, reliable operation, and governed use of identity and AI services. The strategy separates authoritative business responsibilities, favors explicit interfaces over shared state, and verifies architecture continuously.

Technology Decisions

  • Use a consistent .NET runtime and application framework for backend capabilities, with an approved frontend platform for customer and administration experiences. This supports Modifiability, Interoperability, and Operability and implements technical constraints TC4 and TC5.
  • Use explicit, versioned interfaces for cross-area communication. Stable contracts allow producers and consumers to evolve independently, satisfying Interoperability and Deployability and implementing TC2, TC3, and TC6.
  • Use a common orchestration and observability baseline for local development and deployment. This reduces environment drift and provides consistent diagnostics for Deployability and Operability.
  • Match persistence to each area’s consistency and access needs while keeping one authoritative owner for each domain record. This supports Correctness and Modifiability and implements TC1.
  • Use managed identity, least-privilege authorization, and governed AI integrations. This protects customer and staff boundaries and sensitive information, supporting Correctness and Operability and implementing TC8.

Top-Level Decomposition

BookWorm is divided into six business areas:

  • Catalog: Book data, pricing, discovery, and catalog search.
  • Shopping: Customer baskets before checkout.
  • Ordering: Accepted orders, purchase details, lifecycle, and post-checkout coordination.
  • Reviews: Customer feedback and review information.
  • Conversational: Guided discovery and store assistance.
  • Platform: Shared notification and scheduled-work capabilities.

Shared infrastructure supplies identity, messaging, deployment, observability, and operating support. It does not own commerce state or business rules.

Quality Goal Mapping

PriorityQuality GoalFundamental StrategyPrimary Constraints or Verification
1CorrectnessKeep domain ownership separate, validate purchase information against authoritative data, and distinguish accepted orders from delivery or coordination outcomesTC1, TC7, TC8; checkout and correctness scenarios
2InteroperabilityUse owned, versioned contracts and compatibility checks between business areasTC2, TC3; contract and compatibility verification
3DeployabilityDeploy compatible areas independently and require contract compatibility before releaseTC6; mixed-version and rollback verification
4ModifiabilityOrganize change around bounded areas and enforce architecture boundaries continuouslyTC1, TC6, TC7; architecture and change-safety checks
5OperabilityTrace failed work to its owner, preserve actionable execution state, and use common diagnosticsTC8, OC1, OC2, OC5; tracing, failed-work inspection, and restore evidence

The governing quality goals and detailed scenarios are in Quality GoalsCustom DocQuality GoalsPrioritized, scenario-based quality goals for BookWorm and the current status of their acceptance targets.Ownerarchitecture-enabling-teamOpen doc and Quality RequirementsCustom DocQuality RequirementsChapter guide to BookWorm's quality attributes, priorities, and measurable scenarios.Ownerarchitecture-enabling-teamOpen doc.

Organizational and Process Decisions

  • Assign an explicit owner to each business area and contract.
  • Require architecture review and documented ADRs for cross-area or non-reversible decisions.
  • Synchronize architecture documentation with behavior, contract, and deployment changes.
  • Enforce compatibility, security, privacy, and evidence-based production claims before release.
  • Keep unresolved service levels as proposals until scope, owners, budgets, and acceptance evidence are approved.

Key Trade-offs

  • Bounded ownership and explicit contracts add integration and migration effort but reduce hidden coupling and release risk.
  • Asynchronous delivery and derived views improve isolation but require visible recovery, duplication, and freshness handling.
  • Independent deployment is permitted only where compatibility and operational readiness have been verified.