ADR-BW-002: Retain the established .NET platform foundation
Use the repository's .NET and C# baseline and centralized dependency practices for application services.
| Field | Value |
|---|---|
| Status | Proposed |
| Date | 2026-11-07 |
| Owners | Architecture Enabling TeamTeamArchitecture Enabling TeamEnabling team facilitating BookWorm's architecture governance, ADRs, arc42 documentation, engineering standards, testing...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-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, 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 docs |
Context & Problem Statement
BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs‘s backend services share common tooling for hosting, resilience, observability, testing, and centralized package management. Allowing each service to adopt a different runtime or independently pin package versions would fragment operational tooling, duplicate integration effort, and complicate security patching.
Decision Drivers
- Tooling reuse: Share proven runtime defaults across backend services.
- Dependency hygiene: Prevent version drift and conflicting transitive packages.
- Contributor onboarding: Provide one predictable build, lint, and test workflow.
- Patch velocity: Apply security and runtime upgrades consistently across services.
Options Considered
| Option | Pros | Cons |
|---|---|---|
| Standardize on .NET baseline + central package management | Consistent setup, quality gates, and single-point security patching | Services cannot adopt a different runtime without an explicit exception |
| Per-service runtime choice | Optimal fit for niche workloads | Multiplies monitoring, CI, and security maintenance overhead |
| Migrate all services to a different runtime | Aligns with an alternative ecosystem | High rewrite cost with no direct customer or operational gain |
| Independent per-project package versioning | Individual services can upgrade dependencies early | Causes version skew and subtle cross-service incompatibilities |
Decision & Consequences
Chosen Option: Retain the established .NET and C# baseline with centralized package version management for all core backend services. Storefront microfrontends, external providers (such as Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs), and specialized datastores remain free to use their native ecosystems.
- Positive: Consistent quality gates, predictable onboarding, and coordinated security updates across services.
- Negative: Major framework or shared-package upgrades require validation across all backend services.
Compliance Criteria
- Backend application services must target the repository’s established .NET SDK baseline.
- Package versions must be managed centrally rather than pinned in individual service project files.
- Non-.NET runtimes are permitted only for specialized external containers or frontend applications.