Skip to main content

Deployment Architecture

Full deployment architecture of all AgentStack services in Azure. Use the controls on the diagram to zoom and pan. Click the edit button to open in draw.io.

:::tip Edit this diagram The source file is docs/architecture.drawio in this repo. Open it at app.diagrams.net → File → Open from GitHub to edit and save changes back. :::

loading...

What's in the Diagram

Resource Groups

GroupRegionContents
testingSouth IndiaAuth stack, HITL platform, all microservices, data layer
assistant-agent-rgCentral IndiaAI assistant agent, its database and registry

Traffic Flows

  • Users → Cloudflare → Marketing Site — DNS-only (no proxy), Azure managed SSL cert
  • Users → HITL Frontend → Keycloak — JWT-based login via OIDC
  • HITL Frontend → APIM → Backend services — every API call carries a Keycloak JWT
  • Ingest Service → Event Hub → Router → Review/Config — async event pipeline
  • Assistant Agent → Claude / SendGrid / Twilio — external AI & messaging APIs

CI/CD Flow

Developer → git push → GitHub Actions → az acr build → ACR → az containerapp update → Container App

Color Key

ColorMeaning
🔵 BlueFrontend / UI services
🔴 Red / CoralAuth & Identity (Keycloak, Key Vault)
🟣 PurpleAuthorization & Streaming (OpenFGA, Event Hub, Router)
🟢 GreenBackend services & Databases
🟠 OrangeAPI Gateway (APIM)
⚫ Dark greyInfrastructure (VNet, Toolbox, ACR)

Quick Reference — All Endpoints

ServiceURLVisibility
Marketing Sitehttps://agentstacktech.comPublic
HITL Frontendhttps://hitl-frontend.icydesert-76825898.southindia.azurecontainerapps.ioPublic
Keycloakhttps://keycloak.icydesert-76825898.southindia.azurecontainerapps.ioPublic
Review Servicehttps://review-service.icydesert-76825898.southindia.azurecontainerapps.ioPublic
Ingest Servicehttps://ingest-service.icydesert-76825898.southindia.azurecontainerapps.ioPublic
Config Servicehttps://config-service-test.icydesert-76825898.southindia.azurecontainerapps.ioPublic
APIM Gatewayhttps://cerebro-stg-apim.azure-api.netPublic
Assistant Agenthttps://assistant-agent.whitesky-2d1b6450.centralindia.azurecontainerapps.ioPublic
OpenFGAopenfga.internal.icydesert-76825898.southindia.azurecontainerapps.ioInternal
Router Servicerouter-service.internal.icydesert-76825898.southindia.azurecontainerapps.ioInternal
Auth DBcerebro-authstack-pg.private.postgres.database.azure.comPrivate VNet
Agent DBassistant-agent-pg-62be6d5f.postgres.database.azure.comPrivate