---
title: Solution Strategy
summary: Executive summary of the architectural decisions that satisfy BookWorm's quality goals and constraints.
owners:
  - architecture-enabling-team
badges:
  - content: Architecture
    backgroundColor: blue
    textColor: blue
---

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

| Priority | Quality Goal         | Fundamental Strategy                                                                                                                                             | Primary Constraints or Verification                                       |
| :------- | :------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------ |
| **1**    | **Correctness**      | Keep domain ownership separate, validate purchase information against authoritative data, and distinguish accepted orders from delivery or coordination outcomes | TC1, TC7, TC8; checkout and correctness scenarios                         |
| **2**    | **Interoperability** | Use owned, versioned contracts and compatibility checks between business areas                                                                                   | TC2, TC3; contract and compatibility verification                         |
| **3**    | **Deployability**    | Deploy compatible areas independently and require contract compatibility before release                                                                          | TC6; mixed-version and rollback verification                              |
| **4**    | **Modifiability**    | Organize change around bounded areas and enforce architecture boundaries continuously                                                                            | TC1, TC6, TC7; architecture and change-safety checks                      |
| **5**    | **Operability**      | Trace failed work to its owner, preserve actionable execution state, and use common diagnostics                                                                  | TC8, OC1, OC2, OC5; tracing, failed-work inspection, and restore evidence |

The governing quality goals and detailed scenarios are in [[doc|arc42/01-introduction-and-goals/003-quality-goals]] and [[doc|arc42/10-quality-requirements]].

## 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.

## Related Architecture Documentation

- [[doc|arc42/02-architecture-constraints]] — Mandatory technical and organizational constraints.
- [[doc|arc42/03-context-and-scope]] — System boundary and external communication channels.
- [[doc|arc42/05-building-block-view]] — Top-level and detailed static decomposition.
- [[doc|arc42/09-architecture-decisions]] — Rationale and alternatives for material decisions.
