2 ms·
Why are Cloudflare Workers limited to languages that compile to Wasm? Can't they use a container of some sort to isolate the code? Many languages can be compile
by DeathArrow 3y ago
Why are Cloudflare Workers limited to languages that compile to Wasm? Can't they use a container of some sort to isolate the code? Many languages can be compiled to Wasm but many times is quirky.
- uzername 3y agoThe cloudflare workers run as "isolates". I think of them as "browser tabs." This post helps explain better" https://blog.cloudflare.com/cloud-computing-without-containers/ https://blog.cloudflare.com/cloud-computing-without-containe...
- re-thc 3y agoNo containers. It’s a v8 isolate ie Chrome and Node’s JS engine. Wasm come included.
- sofixa 3y agoContainers have isolation problems thus requiring a further layer of isolation (microVMs like Firecracker by AWS), which slows startup times. CloudFlare Workers are mostly intended for Edge-ish scenarios so they need to have fast startup times.