Re:AWS Lambda Web Adapter
by throwAGIway on Saturday June 22, 2024 @05:06PM
(#40762212)
Thanks to you and the others who replied too, very insightful. You put me on the right track to learn more about this, much appreciated.
Economically, Cloudflare can do this because they only need a V8 isolate per instance (so barely any RAM besides instantiated JS objects), whereas a Lambda needs RAM for the entire runtime environment. So many more customers can run on the same machine, even if many are waiting on I/O simultaneously.
https://blog.cloudflare.com/cloud-computing-without-containe...
The above tracking method works for containerized things. For virtualized things, it’s different: When a Linux system has nothing to do (all processes sleeping or waiting), the kernel puts the CPU to sleep. The kernel will eventually be woken by an interrupt from something, at which point things continue. In a virtualized environment, the hypervisor can measure how long the entire VM is running or sleeping.