Platform Architecture
Isolated Kubernetes store pods, native Go 1.26 GraphQL engine, Control Plane, and Hosted Storefront Fleet
Platform Architecture
xclade separates control-plane orchestration from per-store runtime execution so every merchant gets physical isolation without managing Kubernetes, databases, or CDN routing.
Topology Overview
┌──────────────────────────────────────────┐
│ Cloudflare / Edge Ingress │
└───────────┬──────────────────┬───────────┘
│ │
https://api.xclade.com │ │ https://{shortId}.api.myxclade.com
▼ ▼
┌─────────────────────────────┐ ┌─────────────────────────────────┐
│ Xclade Control Plane │ │ Dedicated Store Pod (EKS) │
│ Go 1.26 · chi/v5 · pgx/v5 │ │ Go 1.26 · gqlgen · chi/v5 │
│ │ │ │
│ • Auth, Orgs, Billing │ │ • POST /graphql (Store) │
│ • Store Operator (K8s) │ │ • POST /admin/graphql (Admin) │
│ • Storefront Studio + TSX │ │ • /mcp & /mcp/store (OAuth) │
│ • Growth Studio (AWS SES) │ │ • UCP / ACP / A2A / llms.txt │
│ • Migrations & Snapshots │ │ • /webhooks/* & /app (Console) │
└──────────────┬──────────────┘ └────────────────┬────────────────┘
│ │
┌──────────────▼──────────────┐ ┌────────────────▼────────────────┐
│ Control Plane Postgres │ │ Isolated Store Postgres DB │
│ + Dedicated Go Worker │ │ + Scoped Redis + Typesense │
└─────────────────────────────┘ └─────────────────────────────────┘Core Components
1. Dedicated Store Runtime (xclade-store-backend)
Each provisioned store runs an isolated Go 1.26 binary in its own Kubernetes namespace (store-{uuid}) connected to its own isolated PostgreSQL database and scoped Redis namespace:
- GraphQL Engine (
gqlgen): Code-generated, statically typed schemas compiled directly into the binary with zero runtime reflection overhead. - DataLoader Batching (
graph/loaders/): Per-request Go batchers eliminate N+1 SQL queries across collections, categories, currencies, regions, countries, and order items. - Two-Layer Response Cache (
XcladeResponseCache): Redis-backed caching on 17 allowlisted public Storefront queries, isolated bytenantScope + salesChannels + locale + actor, with automatic tag invalidation on mutations. - Built-In Hardening (
XcladeGraphQLArmor): Enforces AST depth, alias, directive, batch, payload size, timeout, CSRF preflight, and Redis rate limits in Go middleware. - Native Protocol Surfaces: Ships with OAuth 2.1 Remote MCP (
/mcp,/mcp/store), Agentic Commerce (Google UCP, OpenAI ACP, A2A, WebMCP,llms.txt), provider webhooks, and the embedded Store Admin SPA (/app).
2. Xclade Control Plane (xclade-api & xclade-worker)
Mounted directly at the root of https://api.xclade.com, the Go Control Plane manages:
- Organization identity, RBAC, OIDC SSO, WebAuthn Passkeys, and Stripe billing.
- Automated Kubernetes store provisioning, scaling, pause/resume, release channels, and encrypted database snapshots.
- Storefront Studio: Theme documents, AI storefront edits, secure TSX component compilation, and GitHub template registry sync.
- Growth Studio: Email block compilation, AI campaign architect, scheduled broadcasts, A/B testing, automation flows, RFM scoring, and AWS SES delivery with mandatory verified custom sending domains.
- Dedicated Go Worker (
xclade-worker): Executes asynchronous catalog migrations (Shopify/BigCommerce), snapshot jobs, AI runs, and Growth Studio flow/campaign dispatch loops.
3. Hosted Storefront Fleet (xclade-edge & xclade-storefront)
Merchants can either build their own headless frontend (Next.js, Remix, mobile) or deploy instantly onto the Hosted Storefront Fleet:
xclade-edgeresolves incoming custom domains and{shortId}.myxclade.comhostnames against the Control Plane and routes traffic with automatic TLS.xclade-storefrontrenders the store'sStorefrontDocumentand compiled custom TSX sections against the store pod's/graphqlendpoint and shared Typesense instant search index.
Health & Telemetry Endpoints
Every store pod exposes lightweight operational probes:
| Endpoint | Purpose |
|---|---|
GET /health or GET /status | Liveness/readiness check verifying database connectivity, engine version, and store_id. |
GET /graphql/health | Live GraphQL execution telemetry snapshot (latency and error metrics). |
GET /agentic/status | Live diagnostics for UCP, ACP, A2A, llms.txt, and Web Bot Auth readiness. |
GET https://api.xclade.com/health | Control Plane health check. |