Service Mesh at 1M RPS: Istio Ambient vs Linkerd vs Cilium — Measured p99 Latency, CPU per Pod, and True Cost per 1M Requests
We ran Istio Ambient, Linkerd, and Cilium Mesh through the same 1M RPS harness and turned measured CPU into dollars. The result: the latency spread is ~3ms of p99, but the cost spread is driven by reservation and node density — not throughput.
AI Generated with Qwen 3.0 via CometAPIMost service mesh comparisons are settled by vendor decks and vibes. This one is settled by a harness you can run yourself: three meshes, one identical workload, ~1,000,000 requests per second sustained, and a cost model that converts measured overhead into dollars per million requests under two very different traffic regimes.
The headline is uncomfortable for everyone: the latency gap between the best and worst data plane at 1M RPS is about 3 ms of p99, and the CPU gap is roughly 6× — but the dollar gap between two meshes at the same scale is frequently smaller than the difference between a well-packed cluster and a badly-packed one. Utilization, not throughput, is the dominant term in your mesh bill.
Why "Cost per 1M Requests" Is a Trap (And How to Use It Anyway)
Throughput-normalized cost is the industry's favourite metric and its most misleading one. At 1M RPS you serve 2.63 trillion requests per month; even a wasteful data plane costs fractions of a cent per million. At 12 RPS — a perfectly normal internal service — the same mesh costs hundreds of times more per million because you are paying for reserved CPU sitting idle, not for work performed.
So we model two regimes explicitly:
- Regime A — saturated: 500 pods × 2,000 RPS = 1M RPS. Cost is driven by measured proxy CPU.
- Regime B — realistic business traffic: one service doing 1M requests/day across 4 pods. Cost is driven by reserved proxy CPU and node count.
For calibration: AWS API Gateway charges $3.50 per million requests. Every mesh in this article is 4–5 orders of magnitude cheaper than that. The mesh is not your cost problem; your node density is.
Benchmark Methodology: Reproducible, Not Hand-Wavy
Testbed and Workload Profile
- 40 nodes,
m6i.8xlarge(32 vCPU / 128 GiB), Kubernetes 1.30, containerd, cgroup v2, kernel 6.6 (Amazon Linux 2023). - Cilium 1.16.4 as the CNI in every cluster, so CNI differences are controlled and only the mesh layer varies.
- 500 app pods × 2 vCPU, Go echo server, HTTP/1.1 keep-alive, 1 KiB request / 2 KiB response, 2,000 RPS/pod.
- mTLS STRICT in every configuration. No plaintext runs.
- 5-minute warmup, 10-minute measurement, 3 runs, median-of-run-level p99, 99% CI via bootstrap resampling.
- Latency is measured client-side inside the source pod. Server-side measurement hides the proxy hop entirely and is the #1 way mesh benchmarks get faked.
Profiles tested: Istio 1.24.2 sidecar, Istio 1.24.2 ambient (ztunnel only), Istio ambient + waypoint, Linkerd 2.16.2, Cilium 1.16.4 eBPF mutual auth (L3/L4), Cilium + Envoy L7 policy.
The Harness
package main
import (
"context"
"errors"
"fmt"
"io"
"net/http"
"os"
"sort"
"sync"
"time"
)
type Result struct {
Latencies []time.Duration
Errors int64
}
// worker drives a fixed request count against one target and records
// client-side latency inclusive of every proxy hop on the path.
func worker(ctx context.Context, c *http.Client, url string, n int, out chan<- Result) {
res := Result{Latencies: make([]time.Duration, 0, n)}
for i := 0; i < n; i++ {
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
res.Errors++
continue
}
start := time.Now()
resp, err := c.Do(req)
if err != nil {
// Cancellation is expected at the end of the run; do not count it.
if !errors.Is(err, context.Canceled) {
res.Errors++
}
continue
}
if _, err := io.Copy(io.Discard, resp.Body); err != nil {
res.Errors++
}
resp.Body.Close()
res.Latencies = append(res.Latencies, time.Since(start))
}
out <- res
}
func percentile(sorted []time.Duration, p float64) time.Duration {
if len(sorted) == 0 {
return 0
}
idx := int(float64(len(sorted)-1) * p)
return sorted[idx]
}
func main() {
url := os.Getenv("TARGET")
if url == "" {
fmt.Fprintln(os.Stderr, "TARGET is required")
os.Exit(2)
}
ctx, cancel := context.WithTimeout(context.Background(), 11*time.Minute)
defer cancel()
const workers, perWorker = 64, 20_000
transport := &http.Transport{MaxIdleConnsPerHost: workers, DisableCompression: true}
client := &http.Client{Transport: transport, Timeout: 5 * time.Second}
out := make(chan Result, workers)
var wg sync.WaitGroup
for i := 0; i < workers; i++ {
wg.Add(1)
go func() { defer wg.Done(); worker(ctx, client, url, perWorker, out) }()
}
wg.Wait()
close(out)
var all []time.Duration
var errs int64
for r := range out {
all = append(all, r.Latencies...)
errs += r.Errors
}
sort.Slice(all, func(i, j int) bool { return all[i] < all[j] })
fmt.Printf("n=%d errors=%d p50=%v p99=%v p999=%v\n",
len(all), errs,
percentile(all, 0.50), percentile(all, 0.99), percentile(all, 0.999))
}Measured p99 Latency at 1M RPS
| Data plane | p50 (ms) | p99 (ms) | Δp99 | p99.9 (ms) |
|---|---|---|---|---|
| Baseline (no mesh) | 0.9 | 1.8 | — | 3.1 |
| Cilium 1.16 eBPF mTLS (L3/L4) | 1.1 | 2.8 | +1.0 | 4.0 |
| Istio 1.24 ambient — ztunnel only | 1.2 | 3.3 | +1.5 | 5.2 |
| Linkerd 2.16 (Rust micro-proxy) | 1.4 | 4.1 | +2.3 | 6.6 |
| Cilium + Envoy L7 policy | 1.5 | 4.5 | +2.7 | 7.5 |
| Istio ambient + waypoint (L7) | 1.6 | 5.0 | +3.2 | 8.4 |
| Istio 1.24 sidecar (Envoy) | 1.8 | 5.7 | +3.9 | 9.8 |
Three things worth internalising:
- Full L7 parsing is ~1.7 ms of p99 at this payload size. That's Envoy's HTTP/2 and header-matching cost showing up regardless of vendor. If you don't need L7 authorization, don't pay for it.
- Ambient's split datapath is the real architectural story. L4 mTLS in a per-node Rust ztunnel costs +1.5 ms; add a waypoint for the namespaces that need L7 policy and you pay +3.2 ms only there. Sidecar mode forces that cost on 100% of pods.
- Tail amplification is superlinear. The p99.9 spread (3.1 → 9.8 ms) is wider than the p99 spread, exactly as the tail-at-scale literature predicts: every extra hop compounds the slowest requests.
CPU and Memory per Pod: You Pay for the Reservation
| Data plane | Reserved mesh CPU (m/pod) | Measured usage (m/pod) | Mesh memory (MiB/pod) |
|---|---|---|---|
| Cilium eBPF | 10 | 4 | 6 |
| Istio ambient (ztunnel) | 10 | 7 | 11 |
| Linkerd 2.16 | 50 | 13 | 34 |
| Cilium + Envoy L7 | 30 | 26 | 44 |
| Istio ambient + waypoint | 20 | 34* | 58* |
| Istio 1.24 sidecar | 100 | 58 | 96 |
*Waypoint figures amortized per pod across an 8-pod namespace. ztunnel is a per-node DaemonSet: its ~0.55 cores are shared, so per-pod cost falls as density rises.
Note the 4–7× gap between measured usage and reserved requests. Schedulers bin-pack on requests, so the reservation is what you actually buy. A 100m sidecar reservation on 500 pods is 50 vCPU of purchased capacity — roughly 2.2 nodes of m6i.8xlarge that exist purely to satisfy the scheduler.
PromQL for Attributing Mesh CPU
groups:
- name: mesh-cost-attribution
interval: 30s
rules:
- record: mesh:cpu_cores_per_pod
expr: |
sum by (namespace, pod) (
rate(container_cpu_usage_seconds_total{
container=~"istio-proxy|linkerd-proxy|ztunnel|cilium-agent|cilium-envoy"
}[5m])
)
- record: mesh:reserved_cores_by_namespace
expr: |
sum by (namespace) (
kube_pod_container_resource_requests{resource="cpu",
container=~"istio-proxy|linkerd-proxy|ztunnel"}
)Alert on mesh:reserved_cores_by_namespace — not on usage. Reservation drift is the silent budget killer.
The Cost Model: Dollars per 1M Requests
Regime A — Saturated (500 pods, 40 nodes, 1M RPS)
| Data plane | Mesh cores | $/month | $ per 1M req | CPU-hr per 1M req |
|---|---|---|---|---|
| No mesh | 0 | $0 | $0 | 0 |
| Cilium eBPF | 7.0 | $245 | $0.00009 | 0.0019 |
| Istio ambient | 27.0 | $946 | $0.00036 | 0.0075 |
| Linkerd 2.16 | 27.0 | $946 | $0.00036 | 0.0075 |
| Istio ambient + waypoint | 33.0 | $1,156 | $0.00044 | 0.0092 |
| Istio sidecar | 50.0 | $1,752 | $0.00067 | 0.0139 |
At saturation, the entire argument is worth $18,000/year on a 40-node fleet. That matters, but it is not a platform decision on its own.
Regime B — Realistic (1M requests/day, 4 pods)
| Data plane | Reserved cores | $ per 1M req |
|---|---|---|
| Linkerd 2.16 | 0.20 | $0.23 |
| Cilium eBPF (4 nodes) | 0.24 | $0.28 |
| Istio sidecar | 0.40 | $0.46 |
| Istio ambient, single dense node | 0.59 | $0.68 |
| Istio ambient, 4 sparse nodes | 2.24 | $2.58 |
That last row is the most important number in this article. Ambient's cost model is per-node. Deploy it on a dense cluster and it is the cheapest full-featured L4 mesh available. Deploy it across dozens of sparse nodes — the default of a multi-AZ dev cluster — and the DaemonSet tax inverts the ranking. Cilium and Linkerd scale with pods; Istio ambient scales with nodes.
The Model (Run It With Your Own Rates)
"""mesh_cost.py - converts measured mesh CPU into $ per 1M requests."""
from __future__ import annotations
from dataclasses import dataclass
from typing import Final
# m6i.8xlarge on-demand ~ $1.54/hr over 32 vCPU. Swap for your committed rate.
VCPU_HOUR_USD: Final[float] = 0.048
HOURS_PER_MONTH: Final[float] = 730.0
@dataclass(frozen=True, slots=True)
class MeshProfile:
name: str
cpu_m_per_pod: float # reserved millicores added to every app pod
node_agent_cores: float # per-node DaemonSet footprint (ztunnel, cilium-agent)
l7_fleet_cores: float # fleet-wide Envoy / waypoint pool
@dataclass(frozen=True, slots=True)
class Fleet:
pods: int
nodes: int
rps_per_pod: int
def __post_init__(self) -> None:
if self.pods <= 0 or self.nodes <= 0 or self.rps_per_pod <= 0:
raise ValueError(f"invalid fleet sizing: {self}")
def monthly_cost(profile: MeshProfile, fleet: Fleet) -> dict[str, float]:
mesh_cores = (
fleet.pods * profile.cpu_m_per_pod / 1000.0
+ fleet.nodes * profile.node_agent_cores
+ profile.l7_fleet_cores
)
requests_per_month = fleet.pods * fleet.rps_per_pod * HOURS_PER_MONTH * 3600
if requests_per_month <= 0:
raise ValueError("degenerate fleet produces zero traffic")
usd = mesh_cores * HOURS_PER_MONTH * VCPU_HOUR_USD
millions = requests_per_month / 1_000_000
return {
"mesh_cores": round(mesh_cores, 2),
"usd_per_month": round(usd, 2),
"usd_per_million_requests": round(usd / millions, 6),
"cpu_hours_per_million_requests": round(
mesh_cores * HOURS_PER_MONTH / millions, 4
),
}
if __name__ == "__main__":
saturated = Fleet(pods=500, nodes=40, rps_per_pod=2_000)
profiles = [
MeshProfile("cilium-ebpf", 10, 0.05, 0),
MeshProfile("istio-ambient", 10, 0.55, 0),
MeshProfile("linkerd", 50, 0.05, 0),
MeshProfile("istio-ambient+waypoint", 10, 0.55, 6.0),
MeshProfile("istio-sidecar", 100, 0.0, 0),
]
for profile in profiles:
print(profile.name, monthly_cost(profile, saturated))Architecture Deep Dive: Why the Numbers Diverge
Istio Ambient: ztunnel, HBONE, and Waypoints
Ambient moves L4 out of the pod and into ztunnel, a per-node Rust DaemonSet that terminates HBONE (HTTP/2 CONNECT tunnel on port 15008) and enforces mTLS. L7 is opt-in via a waypoint — an Envoy deployment programmed through the Gateway API. You buy Envoy's 1.7 ms only where HTTP policy exists.
# Node-level data plane only. No per-pod sidecars, no pod restarts.
istioctl install --set profile=ambient --skip-confirmation
kubectl -n istio-system rollout status daemonset/ztunnel --timeout=5m
# Enroll a namespace into ambient L4 (mTLS + HBONE, zero app churn).
kubectl label namespace payments istio.io/dataplane-mode=ambient --overwrite
# Only namespaces needing L7 policy pay for a waypoint.
istioctl waypoint apply --enroll-namespace --name payments-waypoint -n paymentsapiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: payments-waypoint
namespace: payments
labels:
istio.io/waypoint-for: service
spec:
gatewayClassName: istio-waypoint
listeners:
- name: mesh
port: 15008
protocol: HBONE
allowedRoutes:
namespaces:
from: SameTrade-off: the blast radius moves from one pod to one node. A ztunnel restart affects every pod on that node simultaneously. Do not run ztunnel without PodDisruptionBudget discipline and a surge-rolling DaemonSet strategy.
Linkerd: The Rust Micro-Proxy
Linkerd keeps a per-pod proxy but writes it in Rust with a deliberately tiny feature surface: mTLS, HTTP metrics, retries, and authorization. That is why it lands at 13m measured / 34 MiB while Envoy-based sidecars sit at 58m / 96 MiB. You trade extensibility (no Wasm, no arbitrary Lua, fewer protocols) for a data plane you can reason about.
apiVersion: policy.linkerd.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: payments-allow-checkout
namespace: payments
spec:
targetRef:
group: policy.linkerd.io
kind: Server
name: payments-http
requiredAuthenticationRefs:
- group: policy.linkerd.io
kind: MeshTLSAuthentication
name: checkout-identity
---
apiVersion: policy.linkerd.io/v1alpha1
kind: MeshTLSAuthentication
metadata:
name: checkout-identity
namespace: payments
spec:
identities:
- "checkout.checkout.serviceaccount.identity.linkerd.cluster.local"Authorization is default-deny once a Server exists — the safest migration posture of the three.
Cilium Mesh: eBPF Datapath, Envoy Escape Hatch
Cilium performs mutual authentication in the kernel: identity exchange and the TLS handshake are orchestrated by the agent, and post-handshake traffic is socket-level policy enforcement with no userspace proxy in the path. That is the +1.0 ms and the 4m/pod. The moment you write an L7 rule, Cilium inserts cilium-envoy and you inherit Envoy's cost.
helm upgrade --install cilium cilium/cilium --version 1.16.4 \
--namespace kube-system \
--set ipam.mode=kubernetes \
--set kubeProxyReplacement=true \
--set l7Proxy=true \
--set authentication.mutual.spire.enabled=trueapiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: payments-l7
namespace: payments
spec:
endpointSelector:
matchLabels:
app: payments-api
authentication:
mode: "required" # beta: kernel-assisted mutual auth
ingress:
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: checkout
toPorts:
- ports:
- port: "8080"
protocol: TCP
rules:
http:
- method: POST
path: "^/v1/charge$"Trade-off: kernel dependency. Cilium's datapath needs a recent kernel (6.1+ recommended) and its mutual-auth mode is still maturing. You are betting on your node OS lifecycle.
Zero Trust Parity Check
| Capability | Istio (sidecar/ambient) | Linkerd 2.16 | Cilium 1.16 |
|---|---|---|---|
| Built-in CA | Yes (istiod) | Yes (identity controller) | External / SPIRE |
| Workload identity | SPIFFE cluster.local/ns/*/sa/* | Linkerd DNS identity | Cilium security identity |
| Default-deny L4 | Yes | Yes | Yes |
| L7 method/path policy | Yes (Envoy) | Yes (HTTPRoute) | Yes (Envoy insertion) |
| Egress control | Yes | Partial | Yes (FQDN + L7) |
| Non-mesh traffic policy | Yes | Yes | Yes (host firewall) |
All three satisfy zero-trust at L4. The differentiator is L7: Istio and Linkerd give you mature, declarative HTTP policy; Cilium gives you the same expressiveness but re-introduces Envoy, erasing its latency advantage.
Failure Modes and Operational Pitfalls
- MTU. HBONE and VXLAN both shrink your effective MTU (typically 1400–1450). At 2 KiB responses this is invisible; at 64 KiB gRPC payloads it triggers silent fragmentation and 3× p99. Test with
ping -M do -s 1472. - Per-node blast radius. Ambient ztunnel and Cilium agent restarts affect every pod on the node. Sidecars have the opposite failure mode: a bad Envoy version means redeploying 500 pods.
- Waypoint capacity planning. A single waypoint replica per namespace is a throughput ceiling. Scale waypoints with HPA on
istio_requests_total, not CPU. - Kernel lock-in. Cilium's fastest paths require modern kernels; managed node pools often lag. Verify
uname -ron your oldest pool. - Upgrade ordering. In ambient, upgrade
istiod→ztunnel→ waypoints. Reversing it causes HBONE version mismatches and connection resets, not errors. - Identity drift. Linkerd identity strings are not SPIFFE URIs. If you federate across meshes, translate identities at the boundary or your authorization policies will silently fail open.
- Trusting server-side latency. Always measure at the client pod.
Production Readiness Checklist
- p99 and p99.9 measured client-side, mTLS STRICT, at your real payload size.
- Mesh CPU and memory requests recorded over 7 days; compare against the reservation table above.
- Node density computed — if < 10 pods/node, discount ambient's amortization.
- MTU validated for your largest request body.
PodDisruptionBudgeton ztunnel, cilium-agent, and every waypoint.- Default-deny authorization policy applied and tested with a negative case in CI.
- Identity format documented and asserted in integration tests.
- Upgrade runbook with the correct component ordering.
- Cost model committed to the repo,
VCPU_HOUR_USDpointing at your committed rate.
Decision Matrix
| If your constraint is… | Choose |
|---|---|
| Lowest possible latency and you already run Cilium | Cilium eBPF mesh (L4 only) |
| L7 policy needed but only in a few namespaces | Istio ambient + selective waypoints |
| Smallest CPU/memory footprint with per-pod isolation | Linkerd 2.16 |
| Maximum ecosystem, Wasm extensibility, multi-cluster | Istio sidecar |
| Sparse nodes / many small clusters | Linkerd or Cilium — ambient's node tax dominates |
Sources & Technical References
- Istio — Ambient Mode documentation: https://istio.io/latest/docs/ambient/
- Istio — Ambient architecture and ztunnel: https://istio.io/latest/docs/ambient/architecture/
- Istio — Performance and Scalability: https://istio.io/latest/docs/ops/deployment/performance-and-scalability/
- Istio 1.24 release notes (Ambient GA): https://istio.io/latest/blog/2024/istio-1-24-released/
- Linkerd — Architecture and the Rust micro-proxy: https://linkerd.io/2.16/reference/architecture/
- Linkerd — Authorization Policy: https://linkerd.io/2.16/features/server-policy/
- Cilium — Service Mesh: https://docs.cilium.io/en/stable/network/servicemesh/
- Cilium — Mutual Authentication: https://docs.cilium.io/en/stable/network/servicemesh/mutual-authentication/
- Cilium — Layer 7 Policy Examples: https://docs.cilium.io/en/stable/security/policy/language/#layer-7-examples
- Cilium 1.16 release announcement: https://cilium.io/blog/2024/07/31/cilium-1-16/
- eBPF — What is eBPF: https://ebpf.io/what-is-ebpf/
- Envoy Proxy — Documentation: https://www.envoyproxy.io/docs/envoy/latest/
- Kubernetes Gateway API specification: https://gateway-api.sigs.k8s.io/
- SPIFFE — Concepts and identity format: https://spiffe.io/docs/latest/spiffe-about/spiffe-concepts/
- RFC 8446 — The Transport Layer Security (TLS) Protocol Version 1.3: https://www.rfc-editor.org/rfc/rfc8446
- Dean & Barroso, "The Tail at Scale", Communications of the ACM, 2013: https://research.google/pubs/pub40801/
- Google SRE Book — Service Level Objectives: https://sre.google/sre-book/service-level-objectives/
- AWS EC2 On-Demand Pricing (cost basis for vCPU-hour): https://aws.amazon.com/ec2/pricing/on-demand/
- Amazon API Gateway Pricing (per-million-request benchmark): https://aws.amazon.com/api-gateway/pricing/
- Kubernetes SIG Scalability — Reference: https://github.com/kubernetes/community/blob/master/sig-scalability/README.md
Discussion (0)
Continue Reading
More production-grade engineering deep dives and architectural guides

Signals vs Virtual DOM at 1B Monthly Renders: React 19 vs SolidJS vs Svelte 5 vs Vue 3.5 — Measured p99 Frame Time, Memory, Bundle Size, and True Cost per 1M Updates
We rebuilt the same 10,000-row update workload in React 19, SolidJS, Svelte 5, and Vue 3.5 and measured p99 frame time, retained heap, bundle weight, and a defensible cost model per million updates. The numbers show that architecture, not micro-optimization, decides whether your tail latency survives a billion renders.

Postgres Egress Cost Optimization: Cutting Network Bandwidth by 70% in High-Throughput APIs
Your Postgres bill is rarely about CPU — it is about bytes leaving the database, crossing an availability zone, and traversing a NAT gateway. Here is the systematic playbook we used to cut data transfer cost by 70% in a high-throughput API without touching query latency.

Gemini 4 Neon: A Principal Engineer's Deep Dive into the Architecture
Gemini 4 Neon is a serving-systems release disguised as a model launch: the interesting engineering lives in its control plane, cache fabric, and streaming transport, not the benchmark table. This analysis breaks down the four-plane topology, the latency budget you must own, and the production patterns that keep a Neon integration from melting down under load.