ADR-BW-003: Reuse Aspire and shared technical service defaults
Share orchestration and technical host configuration without moving business rules into the platform foundation.
| Field | Value |
|---|---|
| Status | Proposed |
| Date | 2026-11-07 |
| Owners | Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs |
| Affected Resources | BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs |
| Related ADRs | 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 docs, 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 docs, 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 docs |
Context & Problem Statement
BookWorm’s services and microfrontends require consistent service discovery, health probes, rate limiting, resilience defaults, and telemetry wiring. Re-implementing this plumbing per service invites configuration drift, while centralizing domain logic in shared host defaults violates service ownership.
Decision Drivers
- Operational consistency: Enforce uniform health, telemetry, and resilience baselines.
- Reduced boilerplate: Eliminate repeated technical host configuration across services.
- Boundary preservation: Keep shared defaults strictly technical and domain-agnostic.
Options Considered
| Option | Pros | Cons |
|---|---|---|
| Shared technical defaults + Aspire local orchestration | Uniform discovery, telemetry, and resilience; services opt in to optional features | Shared-default defects can impact multiple services simultaneously |
| Per-service custom host setup | Zero shared-package coupling | Telemetry, health probes, and rate limits drift over time |
| Centralized business-logic host | Shared rules visible in one place | Couples unrelated domains and breaks bounded-context ownership |
| Treat local Aspire setup as production | Single topology to maintain | Local emulators lack production durability, scaling, and security controls |
Decision & Consequences
Chosen Option: Reuse Aspire orchestration and shared technical service defaults for discovery, OpenTelemetry, health checks, resilience, and rate limiting. Each service retains ownership of its domain behavior and may override technical defaults where justified.
- Positive: New services inherit production-grade observability and resilience defaults immediately.
- Negative: Changes to shared defaults require cross-service regression testing.
Compliance Criteria
- Every backend service must register the shared service defaults for health checks and telemetry.
- Shared defaults must remain free of domain entities, business rules, and capability-specific endpoints.
- Local Aspire emulator settings must not be assumed identical to live Azure environment configuration.