Home/Labs/Multi-Cloud Egress Pricing
All 280 Labs
INTERACTIVE LAB☁️

Multi-Cloud Egress & eBPF Mesh Lab (Interactive)

Price TB/day cross-cloud replication on public internet versus private interconnect, then swap Envoy for Cilium. Models hyperscaler egress bills, CDC replication lag against link capacity, 2PC commit latency over WAN RTT, and the sidecar versus kernel-bypass CPU tax.

Multi-Cloud Egress & eBPF Mesh Cost Lab

Price the AWS↔GCP data-gravity tax: replication volume, transit choice, sync pattern, and sidecar vs kernel-bypass networking.

Monthly egress bill

$136,800

1,520,000 GB x $0.09

Cross-cloud RTT

35 ms

public transit, packet loss risk

CDC replication lag

33.1 s

demand 4.6 Gbps of 3 Gbps link

Infra CPU tax

28%

sidecars eating host cores

Per user transaction (serving path)

6 cross-cloud RPCs x 42.2 ms/call + 15 ms local work (writes ack via async CDC, non-blocking) → txn wall ≈ 268 ms

CDC demand (4.6 Gbps) exceeds the 3 Gbps link: backlog lag is 33s and climbing; compress (zstd), batch, or buy interconnect capacity.

Data gravity decides where compute lives: 50 TB/day over the public internet is a $135k/month egress line item, while Equinix-class links trade that for sub-10ms RTT at $0.03/GB. On the networking side, Envoy sidecars copy every request through user space twice (+3.6ms and ~28% of host CPUs), whereas Cilium eBPF redirects socket-to-socket inside the kernel — the same offload story SmartNICs and DPUs push down into hardware.

How It Works Under the Hood

Data gravity makes multi-cloud expensive: hyperscalers bill $0.08-$0.12 per GB of egress, so 50TB/day of CDC replication is a $135k monthly line item, and public-internet RTTs of 25-45ms rule out synchronous two-phase commit. Private interconnects like Equinix Fabric cut both cost and latency, letting Debezium plus Kafka MirrorMaker stream changes asynchronously with sub-500ms lag. In the request path, Envoy sidecars copy every packet through user space twice for ~3.6ms and ~28% host CPU, while Cilium eBPF redirects socket-to-socket inside the kernel.

Core Architectural Principles

  • Monthly egress cost = TB/day x 1,000 x 30.4 days x per-GB rate, dropping ~60-70% on dedicated links.
  • CDC lag stays ~100-500ms while demand fits link capacity, then balloons linearly once the backlog compounds.
  • 2PC commits cost two WAN round trips per write, eBPF socket bypass costs 0.4ms instead of sidecar 3.6ms.
Interview Round Script

Never propose multi-cloud reflexively; start by naming the egress bill and operational tax, then justify it only for regulation (DORA), outage shielding, or workload specialization like AWS serving plus GCP analytics. Contrast active-passive with async CDC against active-active distributed SQL, flag the lowest-common-denominator trap, and mention Cilium/eBPF and SmartNICs to signal current infrastructure fluency.

Key Trade-Offs

Multi-cloud buys regulatory resilience and best-of-breed services at the price of egress fees, WAN-latency-constrained consistency, and doubled operational complexity.

Related Curriculum Chapter

Multi-Cloud Infrastructure, Hybrid Mesh & Kernel Observability with eBPF

Read Full Chapter Blueprint

Explore More Interactive Labs

View All 280 Labs