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

Read the architecture guide →

Architecture Decisions

Navigable register of whole-system and capability-specific architecture decisions.

Architecture

This chapter is the navigation index for BookWorm’s Architecture Decision Records (ADRs). It links to each decision’s canonical record so readers can review its context, alternatives, outcome, consequences, and current status without duplicating that rationale here.

Info

The status and rationale in each linked ADR are authoritative. Treat a decision marked Superseded as historical and follow its replacement when one is identified by the record.

Governance

  • Whole-system decisions establish principles that apply across multiple capabilities.
  • Capability-specific decisions describe choices owned by a particular system or integration.
  • Preserve decision history. When a material decision changes, record the new context and outcome and link it to the decision it replaces; do not silently rewrite the earlier rationale.
  • Keep rationale canonical. This index provides navigation and scope, while each ADR remains the source of its own details and lifecycle status.
  • Review compatibility. Before applying a decision, check its scope, status, related decisions, and stated consequences.

Whole-System Decisions

ADRDecisionPrimary consideration
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 docsOrganize the system around business capabilities and bounded contexts.Clear ownership and independent change versus cross-capability coordination
ADR-BW-002: Retain the established .NET platform foundationDecision Recordv1.0.0ADR-BW-002: Retain the established .NET platform foundationUse the repository's .NET and C# baseline and centralized dependency practices for application services.Ownerarchitecture-enabling-teamOpen docsEstablish a consistent backend platform foundation.Ecosystem consistency versus coordinated upgrades
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 docsStandardize hosting and shared service defaults.Consistent operations versus shared-change impact
ADR-BW-004: Integrate request-response operations through owned HTTP and gRPC contractsDecision Recordv1.0.0ADR-BW-004: Integrate request-response operations through owned HTTP and gRPC contractsUse service-owned HTTP APIs and defined Protocol Buffer interfaces rather than internal handlers or database access.Ownerarchitecture-enabling-teamOpen docsUse explicit, versioned synchronous service contracts.Interoperability versus contract maintenance
ADR-BW-005: Use Kafka for configured asynchronous integrationDecision Recordv1.0.0ADR-BW-005: Use Kafka for configured asynchronous integrationRetain the shared Wolverine Kafka integration for asynchronous cross-capability messages where a broker is configured.Ownerplatform-engineering-teamOpen docsUse asynchronous event exchange for decoupled collaboration.Reduced coupling versus broker operations and eventual consistency
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 business data with its owning capability.Data autonomy versus cross-boundary composition
ADR-BW-007: Distinguish authoritative state from derived viewsDecision Recordv1.0.0ADR-BW-007: Distinguish authoritative state from derived viewsTreat search and rating projections as derived information with explicit consistency limits rather than alternative sour...Ownerarchitecture-enabling-teamOpen docsBuild derived read models separately from authoritative state.Read scalability versus propagation delay
ADR-BW-008: Persist configured broker handoffs with local inboxes and outboxesDecision Recordv1.0.0ADR-BW-008: Persist configured broker handoffs with local inboxes and outboxesUse the shared event framework's per-service durable message storage without claiming exactly-once business effects.Ownerplatform-engineering-teamOpen docsSelect durable handoff and duplicate-control mechanisms by need.Recoverable delivery versus operational complexity
ADR-BW-009: Use local CQRS handlers and the established MediatorDecision Recordv1.0.0ADR-BW-009: Use local CQRS handlers and the established MediatorReuse CQRS and Mediator.SourceGenerator for in-process request handling without treating local messages as service integ...Ownerarchitecture-enabling-teamOpen docsUse local request and handler patterns within capability boundaries.Explicit flow and consistency versus additional structure
ADR-BW-010: Preserve message identity and cross-boundary correlationDecision Recordv1.0.0ADR-BW-010: Preserve message identity and cross-boundary correlationCarry stable integration identity and request context for routing and diagnosis without using correlation fields as auth...Ownerplatform-engineering-teamOpen docsCarry correlation context across synchronous and asynchronous work.End-to-end diagnosis versus sensitive-data exposure
ADR-BW-011: Reuse request validation and structured HTTP errorsDecision Recordv1.0.0ADR-BW-011: Reuse request validation and structured HTTP errorsValidate applicable requests before handlers and expose predictable HTTP problem responses without leaking internal exce...Ownerarchitecture-enabling-teamOpen docsStandardize validation and machine-readable error behavior.Predictable clients versus host-specific registration
ADR-BW-012: Select resilience according to operation semanticsDecision Recordv1.0.0ADR-BW-012: Select resilience according to operation semanticsUse shared outbound defaults and capability-specific failure handling without equating retries or duplicate guards with ...Ownerplatform-engineering-teamOpen docsApply bounded resilience according to operation semantics.Fault tolerance versus duplicate or amplified side effects
ADR-BW-013: Use shared structured logging and OpenTelemetryDecision Recordv1.0.0ADR-BW-013: Use shared structured logging and OpenTelemetryProduce correlated logs, traces, metrics, and configured health signals while keeping business completion separate from ...Ownerplatform-engineering-teamOpen docsStandardize distributed traces, metrics, and structured logs.Consistent diagnosis versus sampling and retention cost
ADR-BW-014: Compose shared governance on each enabled AI pathDecision Recordv1.0.0ADR-BW-014: Compose shared governance on each enabled AI pathReuse privacy, guardrail, and policy mechanisms across Chat and Rating while verifying registration and permissions on e...Ownerai-capabilities-teamOpen docsLayer identity, privacy, policy, and tool controls on AI workflows.Safer AI execution versus policy maintenance
ADR-BW-015: Separate logical architecture from environment configurationDecision Recordv1.0.0ADR-BW-015: Separate logical architecture from environment configurationDocument configured dependencies and environment differences explicitly instead of inferring production infrastructure f...Ownerplatform-engineering-teamOpen docsSeparate logical system design from environment-specific settings.Environment consistency versus deployment-specific variation
ADR-BW-016: Verify behavior, contracts, and boundaries in separate layersDecision Recordv1.0.0ADR-BW-016: Verify behavior, contracts, and boundaries in separate layersCombine focused business tests, consumer/provider contracts, architecture checks, schema validation, and high-value user...Ownerarchitecture-enabling-teamOpen docsUse multiple verification layers to protect change safety.Broad evidence versus test execution cost
ADR-BW-017: Gate independent evolution on contract compatibilityDecision Recordv1.0.0ADR-BW-017: Gate independent evolution on contract compatibilityPrefer compatible contract changes and coordinate breaking migrations using consumer-impact review and the existing sche...Ownerarchitecture-enabling-teamOpen docsEvolve contracts with compatibility checks and staged changes.Independent releases versus coordinated breaking changes
ADR-BW-018: Maintain one authoritative resource per architecture decisionDecision Recordv1.0.0ADR-BW-018: Maintain one authoritative resource per architecture decisionStore whole-system ADRs at the catalog root, preserve existing system ADRs, and make arc42 section 9 a reference registe...Ownerarchitecture-enabling-teamOpen docsMaintain one canonical record for each architecture decision.Decision traceability versus duplicated rationale
ADR-BW-019: Adopt polyglot persistence matched to capability access patternsDecision Recordv1.0.0ADR-BW-019: Adopt polyglot persistence matched to capability access patternsMatch PostgreSQL, Azure Cosmos DB, Redis, and Qdrant to each capability's consistency, partitioning, latency, and search...Ownerarchitecture-enabling-teamOpen docsMatch PostgreSQL, Cosmos DB, Redis, and Qdrant to capability needs.Workload fit versus multi-engine operational overhead
ADR-BW-020: Coordinate checkout workflows with Azure Durable Functions sagasDecision Recordv1.0.0ADR-BW-020: Coordinate checkout workflows with Azure Durable Functions sagasUse Azure Durable Functions in Order Orchestration keyed by OrderId with LIFO compensations instead of choreography or a...Ownercommerce-fulfillment-teamOpen docsCoordinate checkout sagas with Azure Durable Functions keyed by OrderId.Explicit compensation visibility versus Functions host runtime coupling
ADR-BW-021: Enforce fail-closed PII redaction via Presidio sidecarDecision Recordv1.0.0ADR-BW-021: Enforce fail-closed PII redaction via Presidio sidecarRoute AI prompts, responses, and review summaries through the Presidio API sidecar to scrub PII fail-closed.Ownerai-capabilities-teamOpen docsEnforce fail-closed PII redaction via the Presidio API sidecar.Centralized NLP privacy controls versus extra internal hop latency
ADR-BW-022: Keep scheduler.process-vector-batch unprefixedDecision Recordv1.0.0ADR-BW-022: Keep scheduler.process-vector-batch unprefixedPreserve the unprefixed scheduler.process-vector-batch Kafka topic for scheduled vector indexing triggers across environ...Ownerplatform-engineering-teamOpen docsKeep scheduler.process-vector-batch unprefixed across environments.Binding stability versus per-environment Kafka cluster isolation
ADR-BW-023: Decouple storefront into Next.js multi-zones behind the gatewayDecision Recordv1.0.0ADR-BW-023: Decouple storefront into Next.js multi-zones behind the gatewayCompose independent storefront and commerce Next.js applications via multi-zone routing behind the unified reverse proxy...Ownercatalog-experience-teamOpen docsCompose storefront apps as Next.js multi-zones behind the gateway.Independent frontend releases versus coordinated gateway routing

Capability and Integration Decisions

Each entry links directly to its ADR resource. Read the record for its scope, status, rationale, and links to related decisions.

AreaDecisions
Catalog
Shopping — Basket
Ordering — Orders
Ordering — Finance
Reviews — Rating
Conversational — Chat
Conversational — MCP Tools
Platform — Notifications
Platform — Scheduling
Platform — Email Provider
Identity Provider
Data Privacy