eshop-full — system architecture

Twenty-one projects, four layers — fifteen done, six still to come.

This is the target shape, not a claim that it already runs end-to-end — eShop.AppHost (the Aspire orchestrator every service and container dependency registers with) is deliberately the last project added, since it can't meaningfully exist until the things it orchestrates do. Migration order is foundation-first: shared/foundation projects, then domain APIs, then background workers, then the frontends, then eShop.AppHost, then tests/ and build/. See Event Flow for how the foundation layer's pieces actually talk to each other today.

Frontends, 5 of 5 done. Domain APIs, 5 of 5 done. Background Workers, 3 of 3 done. Foundation, 5 of 5 done. Orchestration, 1 of 1 done. Frontends — 5 of 5 done Domain APIs — 5 of 5 done Background Workers — 3 of 3 done Foundation — 5 of 5 done Orchestration — 1 of 1 done

Layers

Frontends
WebApp (React) WebBFF (Duende.BFF) Identity.WebApp (React) WebhookClient.WebApp (React) ClientApp (Avalonia)
↓ HTTP / gRPC-Web / gRPC
Domain APIs
Identity.API Catalog.API Basket.API Ordering.API Webhooks.API
↓ publish/consume integration events
Background workers
OrderProcessor PaymentProcessor WebhookClient (sample)
↓ every layer above builds on
Foundation
Shared EventBus EventBusKafka eShop.ServiceDefaults IntegrationEventLogEF
↓ orchestrates all of the above, added last
Orchestration
eShop.AppHost
done in progress not started

Foundation layer — the part that's real today

Done

Shared

  • Linked-source utilities, no .csproj
  • Compiled directly into consuming projects
Done

EventBus

  • Transport-agnostic abstractions
  • IEventBus, IIntegrationEventHandler<T>
Done

EventBusKafka

  • Kafka implementation, 3-layer Decorator chain (replacing an original RabbitMQ implementation)
  • 2 real upstream bugs found and fixed in the original RabbitMQ implementation
Done

eShop.ServiceDefaults

  • Aspire telemetry/health-check/resilience defaults
  • Shared by every service via AddServiceDefaults()
Done

IntegrationEventLogEF

  • EF Core-backed transactional outbox
  • All 7 source files reviewed, several real fixes

Domain APIs — fully done

Done

Identity.API

  • Duende IdentityServer + ASP.NET Core Identity, EF Core-backed
  • 129 source files reviewed; Quickstart UI converted straight to JSON, no Razor added; 101 tests
Done

Catalog.API

  • Product catalog, real v1/v2 API surface, AI embedding-based semantic search
  • 45 tests; a real upstream validation bug found and documented
Done

Basket.API

  • Redis-backed cart, pure gRPC plus a new gRPC-Web endpoint
  • Two Kestrel endpoints (HTTP/2 native, HTTP/1.1 Web) — Kestrel can't multiplex both on one port without TLS
Done

Ordering.Domain / .Infrastructure / .API

  • DDD split: domain model, EF Core persistence, MediatR CQRS API surface
  • 3-stage pipeline behavior chain (Logging → Validator → Transaction), same Decorator shape as EventBusKafka
Done

Webhooks.API

  • Outbound webhook notifications — confirmed Observer pattern over HTTP
  • A real no-op upstream handler and dead exception class found and kept, documented
i

Every project above and below is on the Projects Reference diagram with its real one-line role. How the foundation layer's pieces publish, decorate, and persist an integration event today is on Event Flow. How each done project got to full test coverage is on Testing Strategy.