5 ms·
> Isolates are far more lightweight than containers, a central tenet of most other serverless providers’ architecture. Containers effectively run a virtual mach
by jeffbee 6y ago
> Isolates are far more lightweight than containers, a central tenet of most other serverless providers’ architecture. Containers effectively run a virtual machine, and there’s a lot of overhead associated with them.
Kill me, now. Containers are in no respect virtual machines. Cloudflare Workers, by contrast, literally are virtual machines: your code runs on V8.
- james412 6y agoAn isolate is a v8 "virtual machine" running in-process with many other such machines, virtualization is provided by a userspace program A process is a "virtual machine" running on-host with many other such machines, virtualization is provided by the kernel A host is a "virtual machine" running on metal with many other such machines, virtualization is provided by the CPU Metal is a "virtual machine" running on microcode with up to 3 sets of sibling architectural state (did any vendor ever implement 8-way SMT?), virtualization is provided by the silicon It's turtles all the way down Even better if the isolate is itself running an emulator, in which case it's also turtles all the way up
- namibj 6y agoYes, 8-way SMT is available in scale-up POWER 9. But it just merges pairs of 4-way SMT cores instead of adding more threads to each core. The overall number of threads is not affected.
- kentonv 6y agoYou are correct. However: - These days, it has become common to use the term "Virtual Machine" specifically to refer to hardware virtualization. The old meaning of the term, referring to language runtimes, is (sadly) now so uncommon as to be outright confusing to many people. - Most other Serverless environments technically do wrap their containers in virtual machines (like Firecracker), since plain containers aren't considered sufficiently secure on their own.