Deployment, Infrastructure & Architecture: LiteLLM vs. Kong vs. Portkey vs. TrueFoundry
By Platform Engineering · Published March 10, 2026
EDITORIAL DISCLAIMER — Assessments reflect TrueFoundry's opinions as of March 10, 2026. Verify against current vendor docs before architectural decisions.
LiteLLM is fully self-hosted (Docker, K8s, ECS). Kong in db-less self-managed mode has no external control-plane dependency. Portkey's hybrid mode keeps prompts and responses in the VPC, with its control plane in Portkey's cloud, and Portkey also offers air-gapped enterprise deployments. TrueFoundry documents six deployment scenarios, including a customer-hosted gateway plane and an enterprise self-hosted control plane.
IMPORTANT NUANCE — PUBLIC DOCS ARE MIXED ON AIR-GAPPED DEPENDENCIES
The public docs are not fully consistent here. Architecture pages still describe a global licensing/authentication server and analytics server outside customer infrastructure, and the self-hosted control-plane install guide lists egress access to auth.truefoundry.com, login.truefoundry.com, catalogue.truefoundry.com, and analytics.truefoundry.com. At the same time, installation docs also describe an air-gapped / restricted-network deployment flow, and enterprise docs describe an external SSO option that deploys the control plane without the TrueFoundry Auth Server. For strict air-gap reviews, validate the exact enterprise deployment posture against the latest product guidance rather than relying on a single doc page.
§0 — TL;DR & Quick-Picks
REAL-WORLD SCENARIO: THE DATA-SOVEREIGN AI PLATFORM MANDATE
A pan-European financial institution receives a formal supervisory finding under DORA's ICT third-party risk provisions. The finding is unambiguous: their AI inference pipeline, which routes customer-facing prompts through a US-domiciled SaaS control plane, is non-compliant with cross-border data transfer restrictions and ICT concentration risk rules. The CISO issues a mandate — every component in the LLM governance path must run within the institution's own infrastructure. No SaaS control plane. No outbound licensing calls on the inference hot path. Full audit log ownership. The platform team has a 90-day window to re-architect.
The team evaluates four candidates. Portkey's standard hybrid deployment moves the data plane into the VPC, but the control dashboard and higher-level configuration features remain in Portkey's cloud — the CISO rejects that default posture immediately unless a fully private enterprise deployment is explicitly scoped. LiteLLM is fully self-hostable in Python but the team discovers that at their target 1,500 RPS peak, Redis and careful database architecture become mandatory, and the Python GIL creates a horizontal-scaling story that adds operational surface area. Kong AI Gateway in db-less self-managed mode satisfies data residency, but the AI-specific features they need (AI Proxy Advanced load balancing, AI Rate Limiting Advanced) require an enterprise license whose validation path the security team scrutinizes carefully. TrueFoundry is the only platform with a formally documented split-plane model where the control plane itself can be self-hosted on enterprise plans; the gateway data plane is stateless and evaluates routing, budgets, and auth entirely in-memory with no external calls on the inference hot path. The public docs are mixed, however: architecture pages describe global licensing/authentication and analytics services outside customer infrastructure, while installation docs also describe an air-gapped deployment flow and an external-SSO option that removes dependence on the managed auth server. For strict regulatory reviews, that nuance should be validated directly against the latest enterprise deployment guidance.
This blog dissects exactly why deployment architecture is not a Day-2 concern for AI gateways. It is often the decision that determines whether a product can be adopted at all.
LiteLLM
Fully self-hosted Python proxy. Docker, K8s, and ECS/Terraform paths documented. Redis becomes required at scale. Best for teams that want rapid deployment without deep K8s expertise, while accepting Python-runtime scaling constraints.
Kong AI Gateway
Multi-topology C/Lua data plane: traditional (DB), hybrid, and db-less. Konnect for managed CP or fully self-managed. Most portable runtime; AI plugin features are version- and license-gated.
Portkey
Offers a SaaS Anycast edge, a hybrid VPC mode (data plane in VPC, SaaS control plane), and air-gapped enterprise deployments where the Gateway and Backend run locally without access to Portkey's hosted control plane. Highly flexible across residency constraints.
TrueFoundry
K8s-native split-plane platform with the broadest documented deployment menu in this comparison: SaaS, VPC / on-prem gateway plane, enterprise self-hosted control plane, and fully self-hosted variants. Stateless Hono gateway pods keep the inference hot path in-memory. Docs also support multiple gateway planes and OpenTofu / Terraform + Helm. Public docs also include air-gapped install guidance and external SSO, though architecture pages still describe global auth/licensing and analytics services.
Examples below illustrate flagship and efficiency-tier model families referenced throughout this post; verify exact model strings against current provider API docs before use:
gpt-5.4gpt-5.4-progpt-5.4-miniclaude-opus-4-6claude-sonnet-4-6claude-haiku-4-5gemini-3.1-pro-previewgemini-3-flash-previewgemini-3.1-flash-lite-preview
§1 — Why Deployment Architecture Is a First-Class Concern
Routing strategy, fallback chains, and observability pipelines get most of the attention in AI gateway evaluations. Deployment architecture is typically deferred to a later phase — until it isn't. The moment a platform team encounters a security review, a data residency requirement, an air-gap mandate, or a large-scale production traffic target, deployment architecture becomes the dominant selection criterion.
For AI gateways specifically, the deployment question is structurally harder than it is for conventional API gateways. Several forces converge:
- The inference hot path carries regulated content. Prompt and completion payloads frequently contain PII, PHI, customer data, or proprietary business logic. Which components sit in that path, and where those components run, is a compliance question, not just an infrastructure one.
- Control planes know too much. A gateway's control plane manages keys, budgets, routing policy, and audit logs. If the control plane is cloud-hosted, that knowledge graph lives outside the organization's perimeter. This matters for both regulatory compliance and competitive confidentiality.
- Stateless vs. stateful data planes have wildly different scaling contracts. A stateful data plane — one that accumulates key-lookup state, rate-limit counters, or routing decisions locally — becomes operationally rigid: teams need sticky sessions, coordinated Redis clusters, or distributed locks to scale horizontally. A stateless data plane, where policy is pushed in from outside rather than accumulated locally, enables clean K8s HPA-based scaling without those constraints.
- Provider credentials must go somewhere. Whether stored in a local database, a vault, an environment variable, or a SaaS secret store, the location of provider API keys shapes the threat model for every request that crosses the gateway.
A single synthesis positioning map appears in §7 after the vendor-by-vendor analysis, once the deployment evidence has been laid out.
LITELLM
§2 — Python Proxy: Flexible Deployment, Runtime-Bounded Scale
Deployment Architecture
LiteLLM's gateway is a Python process — the same runtime used for the SDK — and it can be deployed in any environment that can run a Python container. The public docs document four primary paths: direct Docker container, Docker with a database backend for persistent key/spend state, Kubernetes via Helm, and Terraform-based ECS for AWS-native environments.
The deployment model creates a clear three-tier architecture. The lightest tier — a single containerized proxy with a config.yaml mounted in — handles routing, model aliasing, and provider normalization without external dependencies. The second tier adds a PostgreSQL database and master key, which unlocks persistent virtual keys, team budgets, the Admin UI, and spend tracking. The third tier layers Redis on top for state coordination at scale.
The key inflection point documented explicitly by the LiteLLM deployment guide is 1,000 requests per second: above this threshold, Redis is described as required to prevent database connection exhaustion and deadlocks. This is not a soft recommendation — it is a hard architectural constraint on the Python runtime's ability to manage concurrent state across multiple proxy replicas. The practical consequence for platform teams is that a highly available, horizontally scaled LiteLLM deployment is a three-component system (proxy + Redis + Postgres), and all three components must be designed for failure independently.
# Database-backed LiteLLM container — required for persistent key management,
# team budgets, and the Admin UI. Redis must be added separately at >1k RPS.
docker run \
-v $(pwd)/litellm_config.yaml:/app/config.yaml \
-e LITELLM_MASTER_KEY=sk-1234 \
-e DATABASE_URL=postgresql://<user>:<password>@<host>:<port>/<dbname> \
-p 4000:4000 \
docker.litellm.ai/berriai/litellm-database:main-stable \
--config /app/config.yaml --detailed_debug
Source: docs.litellm.ai/docs/proxy/deploy · proxy/architecture
# Illustrative config.yaml shape — upstream definitions, general settings, observability
model_list:
- model_name: flagship-openai
litellm_params:
model: openai/gpt-5.4
api_key: os.environ/OPENAI_API_KEY
api_base: https://api.openai.com/v1
- model_name: flagship-claude
litellm_params:
model: anthropic/claude-sonnet-4-6
api_key: os.environ/ANTHROPIC_API_KEY
general_settings:
master_key: os.environ/LITELLM_MASTER_KEY
litellm_settings:
callbacks: ["otel"]
success_callback: ["langfuse"]
service_callbacks: ["datadog", "prometheus"]
turn_off_message_logging: true
Source: docs.litellm.ai/docs/proxy/config_settings · proxy/configs
LiteLLM — three-tier deployment stack
| Tier | Components |
|---|---|
| Tier 1 — LiteLLM Proxy Process (Python) | Virtual key auth · Budget + rate limit checks · Router (EWMA / usage-based) · Provider normalization |
| Tier 2 — PostgreSQL | Keys · Teams · Spend state · Admin UI |
| Tier 3 — Redis | Key cache · rate-limit state · HA / shared-state scale |
Deployment: Docker · Kubernetes / Helm · Terraform (AWS ECS). HA scale-out typically adds shared Redis + DB state across replicas.
Source: docs.litellm.ai/docs/proxy/deploy · docs.litellm.ai/docs/proxy/architecture
LiteLLM's deployment tiers: proxy alone suffices for dev/low-traffic; database unlocks key management and spend tracking; Redis commonly appears in HA or higher-throughput multi-replica deployments for shared cache and rate-limit state. Editorial reconstruction based on LiteLLM deployment and architecture docs.
Kubernetes Scaling
LiteLLM supports K8s HPA, but horizontal scaling requires careful design. Because multiple proxy replicas must share the same Redis and Postgres instances to make consistent decisions on rate limits and key lookup, adding pods without coordinating that shared state layer creates inconsistent behavior. Redis becomes the coordination bus — its availability and latency directly affect whether HPA-triggered scale-out actually improves throughput or simply amplifies the pressure on the shared state layer. For lightweight deployments with a single replica, no Redis dependency exists; the complication arises specifically as the team moves toward high-availability multi-replica setups.
LIMITATION — SHARED STATE REQUIRED FOR HA MULTI-REPLICA DEPLOYMENTS
The Python GIL and the requirement for shared Redis/Postgres state at scale mean that high-availability HPA-based scale-out for LiteLLM carries operational coupling. Each new replica must connect to the shared state layer. For teams that need low-latency, cost-efficient horizontal autoscaling with no coordination bus, this is the primary constraint to plan around. Single-replica or low-traffic deployments are unaffected.
KONG
§3 — Multi-Topology C/Lua Runtime: Three Ways to Deploy
Deployment Architecture
Kong AI Gateway's deployment architecture is documented at developer.konghq.com/ai-gateway through the lens of its underlying gateway primitives. The core insight is that AI features are a plugin layer on top of Kong Gateway's mature network runtime — and that runtime already offers three battle-tested topologies: traditional (DB-backed, admin API-driven), hybrid (centralized control plane with distributed data planes), and db-less (declarative config, no database dependency, YAML-driven). This topology choice is the central deployment decision for Kong AI Gateway.
The Konnect SaaS offering provides a managed control plane with a supported path for hybrid or cloud-gateway data planes. The alternative is fully self-managed Kong: all control plane and data plane components within a team's own infrastructure. The quickstart path uses Konnect, which the docs explicitly frame as "a quickstart for exploration, not the endpoint of a production deployment journey." For regulated environments, self-managed Kong with db-less topology is the relevant deployment model because it has no external control-plane dependency whatsoever — config is consumed from a declarative YAML file pushed via decK or the Admin API from within the perimeter.
# Kong Quickstart — Konnect-based (exploration path)
# Self-managed production deployments use decK + Helm, not this bootstrap script
export KONNECT_TOKEN='YOUR_KONNECT_PAT'
curl -Ls https://get.konghq.com/quickstart | bash -s -- -k $KONNECT_TOKEN --deck-output
export KONNECT_CONTROL_PLANE_URL=https://us.api.konghq.com
export KONNECT_PROXY_URL='http://localhost:8000'
# Enterprise license — required for AI Proxy Advanced, AI Rate Limiting Advanced, etc.
export KONG_LICENSE_DATA='LICENSE-CONTENTS-GO-HERE'
Source: developer.konghq.com/ai-gateway/get-started/
# DB-less declarative config — self-contained, no external control plane required
# Suitable for air-gap / data-sovereign deployments of Kong Gateway
_format_version: "3.0"
services:
- name: llm-service
url: http://localhost
routes:
- name: llm-route
paths: [/v1/chat/completions]
plugins:
- name: ai-proxy # Min. Kong 3.6 · OSS + Enterprise
service: llm-service
config:
route_type: llm/v1/chat
auth:
header_name: Authorization
header_value: "{vault://aws/openai-key}"
model:
provider: openai
name: gpt-5.4
Source: developer.konghq.com/plugins/ai-proxy/ · plugin compatibility reference
Kong AI Gateway — three deployment topologies
| Topology | Components | Notes |
|---|---|---|
| TRADITIONAL (DB) | Admin API / Control; Kong Data Plane (C/Lua); PostgreSQL / Cassandra | State in DB · classic ops |
| HYBRID (CP + DP) | Konnect SaaS CP or self-managed CP; Kong Data Plane (C/Lua) in the team's infrastructure | CP in Konnect or self-managed · DP local. Most common production mode |
| DB-LESS (DECLARATIVE) | Kong Data Plane (C/Lua), no external DB or CP; Declarative Config File, via decK push or ConfigMap | Air-gap friendly. No state outside process. AI Proxy Advanced / AI Rate Limiting Advanced require enterprise license |
Source: developer.konghq.com/ai-gateway/get-started/ · developer.konghq.com/plugins/compatibility/
Kong's three deployment topologies. DB-less mode is the most self-contained for regulated environments but advanced AI plugin features (AI Proxy Advanced, AI Rate Limiting Advanced) require enterprise license and specific minimum versions. Editorial reconstruction.
Kubernetes & Scaling
Kong's C/Lua non-blocking runtime handles high raw concurrency per pod. In db-less mode, data plane pods are stateless with respect to routing configuration (declarative config is loaded at startup or via decK push), making K8s HPA straightforward. In traditional topology, state lives in the database, so scale-out is clean for the data plane itself. The AI Rate Limiting Advanced plugin's state coordination approach depends on the underlying topology and should be reviewed against the plugin compatibility reference before sizing decisions are made.
LIMITATION — AI FEATURE AVAILABILITY IS VERSION- AND LICENSE-GATED
DB-less topology with Kong Gateway OSS supports AI Proxy (from 3.6). AI Proxy Advanced, AI Rate Limiting Advanced, AI Semantic Cache, and AI RAG Injector all require enterprise license and higher minimum versions (3.7–3.10). The plugin compatibility reference is the authoritative source and must be consulted per topology before committing to a deployment model.
PORTKEY
§4 — SaaS-First with a VPC Data-Plane Escape Hatch
Deployment Architecture
Portkey is documented at portkey.ai/docs/product/ai-gateway as "a fully managed SaaS Anycast edge network." This is the default and primary deployment model: clients connect to Portkey's globally distributed edge, routing, retry, fallback, and config evaluation all execute in Portkey's cloud, and requests are forwarded to upstream providers. Setup time for this path is measured in minutes, and the absence of infrastructure to manage is a genuine productivity advantage for teams without dedicated platform engineering resources.
The same Portkey docs also expose a quick local open-source gateway runtime via npx
@portkey-ai/gateway. That matters for evaluation because it gives teams a concrete artifact to run before adopting the managed service or the hybrid Helm path, even though the deeper control-plane and dashboard experience remains cloud-centered in Portkey's published product story.
For organizations that cannot send prompt or completion payloads through a third-party cloud, Portkey documents a hybrid deployment path at portkey.ai/docs/enterprise/hybrid2. The data plane runs inside the customer VPC as a containerized service deployed via Helm. The declared contract is explicit: prompts and responses stay inside the network while only metrics leave. The Portkey control dashboard, config management surface, and higher-level features remain in Portkey's cloud — routing behavior is configured through that cloud control plane regardless of where the data plane runs. This is a meaningful improvement over pure SaaS for data path residency, but it is not equivalent to full self-hosting.
# Portkey VPC data-plane hybrid deployment via Helm
# Prompts and responses remain in your network — only metrics leave to Portkey cloud
helm repo add portkey https://portkey-ai.github.io/helm
helm repo update
# Deploy the gateway data plane into your cluster
helm upgrade --install portkey-gateway portkey/gateway \
-n portkey \
-f values.yaml
# Watch pods come up
kubectl -n portkey get pods -w
# Validate with local port-forward
kubectl -n portkey port-forward svc/portkey-gateway 8787:8787
curl http://localhost:8787/v1/health
# Expected: {"status":"healthy"}
Source: portkey.ai/docs/enterprise/hybrid2 — Deploy Portkey in Your Infrastructure
// Illustrative adapted call — validates hybrid gateway routing after deployment
// Note: handbook source uses "gpt-4"; model string updated here as an example only.
// x-portkey-provider references a virtual provider alias configured via Portkey's cloud CP
curl https://gateway.internal.mycompany.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "x-portkey-api-key: <your-portkey-api-key>" \
-H "x-portkey-provider: @openai-prod" \
-d '{
"model": "gpt-5.4",
"messages": [{"role": "user", "content": "Hello from my private gateway!"}]
}'
Source (adapted): portkey.ai/docs/enterprise/hybrid2 — Make Your First Call section. Model string updated for illustrative purposes; verify against a team's current provider API.
Portkey — SaaS path vs hybrid VPC path
| Path | Components | Notes |
|---|---|---|
| SaaS PATH (Default) | App / Client; Portkey Anycast Edge (Portkey's cloud); Config + Routing CP (All logic in cloud); Upstream Providers | Traffic traverses Portkey-managed edge |
| HYBRID VPC PATH | Customer VPC: App / Client and Gateway Data Plane (Helm, the team's K8s); Portkey Cloud CP (Config / Dashboard / Metrics) | Prompts + responses stay in VPC. Control plane remains in Portkey's cloud |
Portkey's hybrid deployment keeps prompt/completion payloads within the customer VPC. In that hybrid enterprise path, the control plane (config management, dashboard, analytics, and routing configuration) remains in Portkey's cloud infrastructure. Editorial reconstruction based on docs.portkey.ai/docs/enterprise/hybrid2.
Scaling
In SaaS mode, scaling is automatic and transparent — Portkey's managed Anycast edge handles traffic growth without customer intervention. In hybrid mode, the data plane pods deployed via Helm can be scaled with K8s HPA. Portkey's hybrid deployment documentation does not explicitly characterize the stateless or stateful nature of these pods, so statelessness assumptions should be validated against the latest Helm chart and deployment guidance before designing an HPA strategy around them. Routing configuration changes in hybrid mode still flow through the cloud control surface.
CAVEAT — HYBRID VS. AIR-GAPPED DEPLOYMENTS
In Portkey's standard hybrid deployment, the control plane (configs, dashboards, analytics) remains in the cloud while the data plane runs in the team's own VPC. Portkey's public docs also describe air-gapped enterprise deployments where the control plane runs entirely within customer infrastructure, and where the Gateway and Backend operate without access to the hosted control plane. Teams with strict sovereignty requirements should explicitly scope and validate that fully private tier rather than assuming the standard hybrid posture.
TRUEFOUNDRY
§5 — K8s-Native Split-Plane: Six Deployment Scenarios & Stateless Gateway Pods
The Split-Plane Architecture
TrueFoundry's deployment story is organized around a formally documented split-plane model: control plane (orchestrates config, auth, policy, integrations, and deployment state), compute plane (runs model workloads, jobs, and services), gateway plane (proxies LLM and MCP traffic with routing, budgets, and observability), and data plane (stores models and artifacts). The gateway plane is the operationally critical component for AI inference governance, and its architecture is documented explicitly at truefoundry.com/docs/platform/gateway-plane-architecture.
The gateway plane is built on the Hono framework and is designed with an explicit hot-path contract: no external calls during request handling (unless cache is involved). Rate limit evaluation, load balancing, authentication, and authorization all execute in-memory. Logs and metrics are queued asynchronously, and the docs state that request handling continues even if the external queue is down. This is a materially different architecture from LiteLLM's Python proxy (which needs Redis to coordinate state across replicas at scale) and Portkey's hybrid mode (where routing behavior is configured through a cloud control plane).
The gateway plane is stateless, subscribing to configuration updates via a queue with HTTP fallback. This enables cross-region multi-gateway deployments while configuration is managed centrally — and it is the architectural property that makes clean K8s HPA scaling possible.
Deployment Scenarios
The deployment-overview page enumerates six deployment scenarios — an unusually specific breakdown that forces architectural tradeoffs into the open rather than hiding them behind generic capability language:
- Gateway-only SaaS — Managed gateway plane; minimum infrastructure overhead; fastest path to model governance.
- Gateway-plane-only — Customer-hosted gateway pods; hosted control plane. Inference path stays within customer network; policy management in TrueFoundry's cloud.
- Full control plane + gateway — Both control plane and gateway plane within customer infrastructure. Enterprise plan.
- Compute plane + managed gateway — Self-hosted model serving plus managed inference proxy.
- Compute-only — Model serving without gateway.
- Fully self-hosted combination — All planes within customer infrastructure. Maximum control; maximum operational responsibility. Enterprise plan.
WHY TRUEFOUNDRY STANDS OUT ON DEPLOYMENT ARCHITECTURE
- SaaS Deployment — gateway-only SaaS for the lowest operational overhead.
- VPC / On-Prem Deployment — gateway-plane-only and fuller self-hosted deployment paths are both documented.
- Air-gapped Deployment — strong sovereign posture, but the public docs are mixed on whether auth/licensing and analytics are fully severed; validate the exact enterprise posture before making a hard air-gap claim.
- Multiple Gateway Planes — docs explicitly support multiple gateways deployed cross-region with central configuration management.
- GitOps (Infrastructure as Code) — installation model is OpenTofu / Terraform plus Helm.
# Step 1 — Create K8s Secret for control-plane API key
# The gateway plane authenticates to the control plane via this credential
apiVersion: v1
kind: Secret
metadata:
name: truefoundry-creds
type: Opaque
stringData:
TFY_API_KEY: <TFY_API_KEY>
Source: truefoundry.com/docs/platform/deploy-gateway-plane — Create K8s Secret section
# Illustrative gateway-plane routing config — typed YAML, first-match-wins rules
# Latency-based routing for real-time workload; weight-based canary for staging
name: production-routing
type: gateway-load-balancing-config
rules:
- id: "voice-latency-prod"
type: "latency-based-routing"
when:
subjects: ["team:voice-platform"]
models: ["realtime-assistant"]
metadata:
environment: "production"
load_balance_targets:
- target: "openai/gpt-5.4"
retry_config: { attempts: 1 }
- target: "anthropic/claude-sonnet-4-6"
retry_config: { attempts: 1 }
- id: "batch-canary-staging"
type: "weight-based-routing"
when:
subjects: ["team:ai-platform"]
models: ["summarizer"]
metadata:
environment: "staging"
load_balance_targets:
- target: "openai/gpt-5.4"
weight: 90
- target: "openai/gpt-5.4-pro"
weight: 10
Source: load-balancing-configuration · load-balancing-overview
TrueFoundry — split-plane architecture & deployment scenarios
| Plane | Contents | Notes |
|---|---|---|
| Control Plane | Config · Policy · Auth: Routing configs; Key + budget policy; Guardrail configs; Audit + analytics | Self-hosted: Enterprise. +2 global services persist |
| Gateway Plane (Stateless Hono) | In-memory hot path · no external calls · async log queue: Auth + Rate limit; Routing (TPOT); Guardrails; MCP hooks; pod replicas + HPA scale-out | config queue · HTTP fallback. Stateless → no sticky sessions → clean K8s HPA. Policies resolve in-memory per pod at request time |
| Compute Plane | Model workloads; Jobs · Services; Notebooks · Pipelines | (Optional — separate from GW) |
| Data Plane | Model registry; Artifacts · Storage | Optional for GW-only deploy |
6 deployment scenarios: Gateway SaaS → Gateway-plane-only → Full self-hosted (Enterprise).
Source: truefoundry.com/docs/platform/gateway-plane-architecture · truefoundry.com/docs/platform/deployment-overview
TrueFoundry's formal split-plane model. The gateway plane is stateless Hono pods — in-memory hot path, async log queue. Config updates arrive via queue with HTTP fallback; each pod resolves policies locally, enabling clean HPA scale-out with no Redis coordination bus. Editorial reconstruction based on TrueFoundry architecture docs.
Kubernetes HPA — How Stateless Pods Enable Workload-Specific Scaling
TrueFoundry's stateless gateway architecture has a direct and practical consequence for Kubernetes autoscaling. Because each gateway pod evaluates routing policy, rate limits, and auth entirely in-memory at request time — rather than consulting a shared Redis cluster or a remote state store — pods have no coupling to one another. This means the K8s Horizontal Pod Autoscaler can scale the gateway layer based on resource metrics or custom metrics (for example CPU, request rate, or external queue depth) without any concern for state consistency across replicas.
Different application workloads within the same platform benefit from this in distinct ways:
- Real-time voice agents require low TTFT and can spike rapidly. Stateless pods can be pre-warmed and aggressively scaled using CPU-based HPA. When a new pod starts, it subscribes to the current config snapshot over the queue — there is no cache warm-up period for routing or policy data.
- Batch summarization jobs can tolerate higher latency and run at predictable request rates. These can use separate Kubernetes deployments targeting lower replica counts, scaling based on queue depth via an external scaler or scheduled capacity windows. They share the same centrally managed routing and guardrail configs while operating on independent autoscaling targets.
- Interactive API services with variable intraday traffic patterns benefit from the tight HPA loop — since pod state is exclusively in-memory and ephemeral, scale-down is clean. There is no "draining" of per-pod caches to handle.
Stateless Pods → Workload-Specific K8s HPA Profiles
Each workload class can use independent HPA targets — all pods share centrally managed config.
| Workload class | HPA target | Scaling behavior | Result |
|---|---|---|---|
| Real-Time Voice | CPU-based HPA · min 4 · max 20 | Scale fast — no state to warm up. Config sync begins at pod start | Clean scale-out · no Redis coordination |
| Interactive API Service | Custom request-rate metric · min 2 · max 10 | Variable intraday load. Scale-down is clean — no per-pod cache drain | Tight HPA loop · ephemeral pods |
| Batch Summarization | External queue metric · min 0 · max 6 | Event-driven batch path; can scale to zero. Cost-aware scale-down between jobs | Scale-to-zero via event-driven scaler |
All three workload classes share the same centrally managed routing and guardrail policies. Each K8s Deployment has its own HPA target · no Redis coordination bus required across replicas.
Source: truefoundry.com/docs/platform/gateway-plane-architecture · stateless pod model enables independent HPA targets per workload class
TrueFoundry's stateless gateway pods enable workload-specific autoscaling profiles without a shared Redis coordination bus. Each pod class can scale independently while all pods consume the same centrally pushed routing and guardrail config. CPU-based HPA is straightforward; request-rate and queue-depth examples here imply custom metrics or an event-driven scaler. Illustrative parameters only.
LIMITATION — K8S OPERATIONAL PREREQUISITE
The gateway-plane deployment guide requires a running Kubernetes cluster, a domain, a TLS certificate, image-pull credentials, and a control-plane API key before a single request is handled. The platform ships as a combination of OpenTofu / Terraform and Helm charts. For organizations without a dedicated K8s platform engineering function, this is a real adoption barrier. The gateway-only SaaS deployment scenario avoids this entirely.
§6 — Feature Matrix
Cross-referenced against each vendor's official public documentation as of March 2026. ✅ = native/documented, ⚠ = partial / with caveats, ❌ = not available or cloud-dependent in all modes.
| Capability | LiteLLM | Kong AI GW | Portkey | TrueFoundry |
|---|---|---|---|---|
| Fully self-hosted deployment | ✅ Docker, K8s, ECS | ✅ Self-managed all topologies | ✅ Supported via air-gapped enterprise deployments | ⚠ Enterprise K8s Helm; air-gapped install guidance exists, but public docs are mixed on external services |
| SaaS deployment | ❌ No managed SaaS | ✅ Kong Konnect | ✅ Primary offering | ✅ Gateway-only SaaS tier |
| Formal CP / data-plane split | ❌ Monolithic proxy process | ✅ Konnect CP + self-managed DP | ✅ Cloud CP + VPC data plane (Hybrid); private installs also documented | ✅ Explicit 4-plane model |
| Self-hosted control plane | ✅ Proxy is the control surface | ✅ Self-managed Kong | ✅ Available in air-gapped enterprise deployments | ✅ Enterprise plan |
| Stateless data-plane pods | ⚠ Single-container: no external deps; HA multi-replica: shared Redis+DB required | ✅ DB-less mode | ⚠ Helm-deployed VPC data plane; statelessness not explicitly documented | ✅ Stateless Hono; in-memory policy at request time |
| Hot-path: no external calls | ⚠ Redis consulted for rate-limit state at scale | ✅ DB-less: config in-process | ⚠ Hybrid keeps payload path in VPC; air-gapped docs remove hosted-CP dependency | ✅ All checks in-memory; async logs |
| Air-gapped / sovereign hot path | ⚠ Possible; no formal support docs | ⚠ DB-less self-managed (OSS AI Proxy) | ✅ Air-gapped enterprise deployments supported | ⚠ Air-gapped install guide exists; architecture/install docs are mixed on external auth/licensing/analytics |
| VPC / on-prem deployment path | ✅ Docker, Helm, ECS; self-host in the team's infra | ✅ Self-managed Kong in customer infra | ✅ Helm-deployed VPC data plane or air-gapped install | ✅ Primary self-hosted deployment model |
| K8s HPA — clean scale-out | ⚠ HPA possible; HA requires shared Redis + DB across replicas | ✅ DB-less: clean; Traditional: DB-shared state | ⚠ Possible; not detailed in hybrid docs | ✅ Stateless pods; no coordination bus |
| Multiple gateway planes / multi-region | ⚠ Manual; shared DB/Redis required | ⚠ Konnect; or self-managed per region | ✅ SaaS Anycast auto-distributes | ✅ Multiple gateways + central config queue |
| GitOps / Infrastructure as Code | ⚠ YAML config; no built-in GitOps path | ✅ decK + Terraform | ⚠ API-driven; no native GitOps | ✅ OpenTofu / Terraform + Helm |
| Database requirement | ⚠ PostgreSQL required for persistent key/spend/Admin UI state; simple proxy can run without it | ⚠ Traditional topology: Postgres/Cassandra; DB-less: none | ⚠ Not exposed in public docs; vendor-managed in SaaS mode | ⚠ Not exposed in public docs; requirements vary by deployment scenario |
| Redis requirement | ⚠ Required at >1k RPS | ⚠ Optional; used by semantic/cache plugins | ⚠ Hybrid docs depict a cache layer; exact Redis requirement is not explicit | ⚠ No hot-path Redis requirement documented; architecture uses in-memory checks + async queueing |
| Runtime | Python (GIL-constrained) | C/Lua (non-blocking) | Managed SaaS edge; runtime not documented in supplied sources | Hono-based gateway (stateless pods; JS runtime not emphasized in docs) |
| Data residency | ✅ Full control; self-hosted | ✅ Full control; self-hosted | ✅ Full control in air-gapped deployments; hybrid keeps payloads in VPC | ⚠ Hot path in-cluster; public docs are mixed on external services in strict air-gap mode |
| Documented deployment scenarios | 3 (Docker, K8s, ECS) | 3 topologies + Konnect | 4 public postures (OSS local, SaaS, Hybrid VPC, Air-gapped) | 6 (gateway SaaS → fully self-hosted) |
§7 — Editorial Verdict
Editorial assessments as of March 10, 2026.
LITELLM
The Self-Hosted Pragmatist
Lowest barrier to a fully self-hosted deployment. Docker and Helm paths are well-documented. A single-container deployment has no external state dependencies; the Redis/Postgres coupling arises specifically at HA multi-replica scale. For teams below 1k RPS or with single-region, single-replica footprints, those constraints are manageable.
Ideal for: Fast-moving platform teams, internal tooling, teams that want full self-hosting without K8s expertise and can accept Python-runtime scaling constraints at high concurrency.
KONG AI GATEWAY
The Network Operator's Choice
Best deployment-model breadth for teams already on Kong. DB-less topology delivers a genuinely stateless, portable data plane with no external dependencies. Multi-topology flexibility is real, but AI feature availability is tightly coupled to plugin version and license tier.
Ideal for: Existing Kong users, teams wanting a battle-hardened C/Lua runtime, organizations comfortable managing Kong's plugin-version/license matrix.
PORTKEY
The SaaS-Speed Operator
Unmatched time-to-production. The hybrid VPC path addresses data residency for inference, while Portkey's air-gapped enterprise deployment path removes the hosted control-plane dependency for stricter regulatory environments.
Ideal for: Product teams wanting SaaS velocity, or enterprises procuring the fully private / air-gapped tier for strict residency requirements.
TRUEFOUNDRY
The Platform Engineer's Architecture
The most architecturally coherent choice for K8s-native platform teams with data-sovereignty needs. Stateless Hono pods, a formally documented split-plane model, SaaS and VPC / on-prem deployment options, multiple gateway planes, and GitOps-friendly installation make it the strongest deployment story here. The main caveat is not the hot path — which is documented as fully in-cluster — but that the public docs are currently mixed on how auth/licensing and analytics behave in the strictest air-gapped posture.
Ideal for: Regulated or enterprise platform teams that want SaaS-to-self-hosted choice, clean K8s scale-out, multi-region gateway operations, and IaC-driven deployment workflows.
Positioning Map — Deployment Sovereignty ↑ vs. Infrastructure Overhead
From the positioning map on this page:
| Platform | Positioning map label | Quadrant (Infrastructure Overhead / Deployment Sovereignty) |
|---|---|---|
| Portkey | SaaS · Cloud CP | LOW OVERHEAD / LOW SOVEREIGNTY |
| LiteLLM | Python · Self-hosted | LOW OVERHEAD / HIGH SOVEREIGNTY |
| Kong | C/Lua · Multi-topology | HIGH OVERHEAD / HIGH SOVEREIGNTY |
| TrueFoundry | K8s-native · Split-plane · 6 deployment scenarios | HIGH OVERHEAD / HIGH SOVEREIGNTY |
The positioning map has two axes, Deployment Sovereignty and Infrastructure Overhead, and four quadrants: LOW OVERHEAD / HIGH SOVEREIGNTY, HIGH OVERHEAD / HIGH SOVEREIGNTY, LOW OVERHEAD / LOW SOVEREIGNTY and HIGH OVERHEAD / LOW SOVEREIGNTY. None of the four platforms sits in HIGH OVERHEAD / LOW SOVEREIGNTY.
Bubble size reflects documented deployment-option breadth (largest: TrueFoundry). TrueFoundry sits highest on Deployment Sovereignty and furthest toward higher Infrastructure Overhead. Axes are editorial assessments as of March 2026.
§8 — References
- LiteLLM — Proxy Deployment Guide
- LiteLLM — Proxy Architecture (Life of a Request)
- LiteLLM — All Settings Reference
- LiteLLM — Config Overview
- LiteLLM — Virtual Keys
- LiteLLM — Caching (Redis, Semantic)
- Kong AI Gateway Landing Page
- Kong — Get Started with AI Gateway
- Kong — AI Proxy Plugin
- Kong — AI Proxy Advanced Plugin
- Kong — Plugin Compatibility Reference
- Kong — Load Balancing with AI Proxy Advanced
- Portkey — AI Gateway Overview
- Portkey — Deploy Portkey in Your Infrastructure (Hybrid)
- Portkey — Configs
- Portkey — Cache Behavior (Hybrid vs. Air-Gapped)
- Portkey — Air-Gapped Model Pricing
- TrueFoundry — Platform Architecture (Split-Plane Model)
- TrueFoundry — Deployment Overview (Six Scenarios)
- TrueFoundry — Gateway Plane Architecture
- TrueFoundry — Deploy Gateway Plane
- TrueFoundry — Deploy Control Plane and Gateway Plane
- TrueFoundry — External SSO (OIDC/SAML)
- TrueFoundry — Load Balancing Overview
- TrueFoundry — Load Balancing Configuration
- TrueFoundry — Rate Limiting
- TrueFoundry — Export OpenTelemetry Data
- TrueFoundry — Guardrails Overview
- TrueFoundry — Changelog
AI Gateway Series · Blog 11 of 15 · March 10, 2026 · All vendor names are trademarks of their respective owners. Feature claims cross-referenced against official public documentation. Verify before production decisions.