Azure Platform & Topology Overview
Reference architecture for BookWorm's subscription-scoped Azure deployment, shared platform services, and network ingress boundaries.
BookWorm runs on an Azure Container Apps environment provisioned per resource group across Development, Staging, and Production environments. The platform boundary encompasses public ingress routing via a YARP API Gateway, shared container registry and telemetry infrastructure, and identity-based integration with managed data, AI, and external messaging services.
Platform Topology and Ingress Boundaries
Loading graph...
Component & Responsibility
| Component | Role | Protocol / Interface | Persistence / State | Notes |
|---|---|---|---|---|
| Container Apps Environment | Managed Consumption runtime hosting all 16 application workloads and operational tooling | Internal & external HTTP/gRPC | Stateless orchestration | Resource group-isolated |
| API Gateway | Sole public entry point for customer/staff frontends and capability APIs | External HTTPS (port 5000) | Stateless | YARP reverse proxy; proxies identity routes and enforces CORS |
| Quartz Dashboard | Administrative UI for scheduled job inspection and manual triggering | External HTTPS (port 8080) | Reads Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs via Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs | Protected by OAuth APIServicev1.0.0OAuth APIExternal OAuth 2.0 and OIDC identity provider API used by BookWorm clients
and services to authenticate users, issue tok...Ownerplatform-engineering-teamDiagramOpen docs OIDC (admin role) |
| Azure Container Registry | Stores .NET and Next.js container images | HTTPS (registry pull) | Container image artifacts | Basic SKU; pulled via shared environment identity |
| Environment Managed Identity | Shared user-assigned identity for registry image pulls | Azure RBAC (AcrPull) | Stateless identity | Bound to Container Apps Environment |
| Log Analytics Workspace | Centralized platform and application telemetry sink | OTLP / Azure Monitor | 30 days (Dev/Staging); 90 days (Prod) | Shared across all hosted workloads |
| Aspire Dashboard | Live OpenTelemetry logs, distributed traces, and metrics console | Managed Container Apps component | Ephemeral live stream | Provisioned per environment |
Configuration & Operational Defaults
Network & Ingress Boundary
- Public gateway entry: External HTTPS traffic enters through the API Gateway.
- Internal service addressing: All internal apps communicate over environment-internal HTTPS without public exposure.
- CORS policy: Every routed backend API permits
GET,POST,PUT,PATCH, andDELETEwith credentials from the gateway browser origin. - Internal-only workloads: Frontends (Storefront, Commerce, Backoffice), capability APIs (Catalog, Basket, Ordering, Rating, Chat), MCP Tools (accepts gateway origin CORS), background workers (Catalog Ingestion, Finance, Notification, Scheduler), and privacy sidecars (Presidio Analyzer and Anonymizer on HTTP port
3000) have no public ingress.
API Gateway Route Map
Backend routes match in registration order; the Storefront catch-all route carries the lowest routing priority.
| Route pattern | Destination | Routing behavior |
|---|---|---|
/chatting/{**remainder} | Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs | Strips /chatting prefix; preserves host and forwarded headers |
/rating/{**remainder} | Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs | Strips /rating prefix; preserves host and forwarded headers |
/ordering/{**remainder} | Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs | Strips /ordering prefix; preserves host and forwarded headers |
/basket/{**remainder} | Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs | Strips /basket prefix; preserves host and forwarded headers |
/catalog/{**remainder} | Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs | Strips /catalog prefix; preserves host and forwarded headers |
/entra/{**remainder} | OAuth APIServicev1.0.0OAuth APIExternal OAuth 2.0 and OIDC identity provider API used by BookWorm clients and services to authenticate users, issue tok...Ownerplatform-engineering-teamDiagramOpen docs | Strips /entra prefix; forwards to external identity provider |
/backoffice/{**remainder} | Backoffice | Routes staff administration microfrontend |
/basket, /checkout/*, /account/*, /commerce-assets/* | Commerce | Routes customer checkout and account microfrontend |
/{**remainder} | Storefront | Catch-all storefront microfrontend (lowest priority) |
Resource names use deterministic per-resource-group tokens. Deploy each environment (Development, Staging, Production) to a dedicated resource group to keep resource names isolated.
| Parameter | Purpose | Default / notes |
|---|---|---|
| Subscription & Tenant | Target Azure subscription and Microsoft Entra ID tenant | Required |
| Region & Resource Group | Target Azure region and environment resource group | Defaults to southeastasia in CI/CD |
| Kafka Broker Connection | External Kafka cluster connection | Required in Azure deployments |
| Vector Database Connection | External Qdrant Cloud connection | Required in Azure deployments |
| SMTP Endpoint & Port | External email relay endpoint | Defaults to SendGrid on port 587 |
| SMTP Credentials & Sender | Relay username, password, sender address, and display name | Password and sender address required |
| Concern | Local Run Mode | Azure Publish Mode |
|---|---|---|
| Data stores | Local containers and emulators (PostgreSQL, Redis, Cosmos DB, Azurite, Durable Task Scheduler) | Azure-managed services |
| Kafka and Qdrant | Local containers with Kafka UI | External managed providers |
Mailpit container (SMTP port 587) | SendGrid SMTP relay | |
| Developer tooling | Scalar API explorer and MCP inspector | Not provisioned |
| Entra Agent Identities | Not provisioned | Provisioned via Microsoft Graph |
Guardrails & Constraints
Quartz Dashboard is the second externally reachable workload alongside the API Gateway. Restrict its public network ingress before serving Production traffic; see Production Hardening & Compliance ChecklistCustom DocProduction Hardening & Compliance ChecklistPre-production SecOps and reliability checklist for locking down network perimeters, scaling limits, backup drills, and ...Ownerplatform-engineering-teamOpen doc.
The exact Commerce path /basket overlaps with the backend /basket/{**remainder} API prefix. Exact microfrontend routes take precedence so the Commerce page serves bare /basket requests while /basket/... API calls still route to Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets,
Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs.
Related Documentation
- Container Apps & Compute InventoryCustom DocContainer Apps & Compute InventoryReference inventory of all 16 Azure Container Apps, ingress ports, revision modes, and platform-owned runtime services.Ownerplatform-engineering-teamOpen doc — Inventory of all 16 application Container Apps and Quartz Dashboard.
- Stateful Data, AI & Messaging InfrastructureCustom DocStateful Data, AI & Messaging InfrastructureTechnical reference for Azure-managed databases, caches, storage, Durable Task Scheduler, Microsoft Foundry, and externa...Ownerplatform-engineering-teamOpen doc — Environment-tier SKUs and datastore ownership.
- Identity, Entra Agent Identities & RBAC MatrixCustom DocIdentity, Entra Agent Identities & RBAC MatrixReference for Microsoft Entra ID app registrations, Agent Identities for OBO token exchange, and per-service Managed Ide...Ownerplatform-engineering-teamOpen doc — Entra ID applications, scopes, Agent Identities, and Managed Identity roles.
- Deployment & Rollback RunbookCustom DocDeployment & Rollback RunbookOperator runbook for deploying BookWorm releases, shifting Container App revision traffic, and executing instant rollbac...Ownerplatform-engineering-teamOpen doc — Provisioning procedure.