How AWS Lambda logs every flow across thousands of microVMs per host with eBPF and Rust
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Deep technical dive into AWS Lambda's logging architecture using eBPF and Rust, directly relevant to cloud infra and observability.
AWS Lambda replaced its aging network flow capture system with a purpose-built pipeline using eBPF and Rust to track every packet across thousands of Firecracker microVMs per host, each with fleeting millisecond lifespans. The old iptables-based approach broke at Lambda's density due to linear rule explosion—over 100,000 rules per worker for 2,000 micro-VMs—creating unbounded per-packet overhead. The new system prioritizes complete attribution (every flow tied to the correct tenant microVM) and near-zero performance overhead, as any extra CPU or RAM at Lambda's scale erodes utilization and operating margin.
Prashant Kumar Singh, Kshitij Gupta, Shivendra Srivastava
More from Prashant Kumar Singh, Kshitij Gupta, Shivendra Srivastava →