3 ms·
> which uses v8 to implement Cloudflare Workers in shared memory space I'm curious how that works in practice. Specifically, the docs say (https://developers.c
by viraptor 6y ago
> which uses v8 to implement Cloudflare Workers in shared memory space
I'm curious how that works in practice. Specifically, the docs say (https://developers.cloudflare.com/workers/learning/how-workers-works https://developers.cloudflare.com/workers/learning/how-worke...)
> Each isolate's memory is completely isolated, so each piece of code is protected from other untrusted or user-written code on the runtime.
But they don't quite specify if it's isolated at system level (separate threads with unshared memory) or something simpler ("you can't use native code, so v8 isolates your objects").
- kentonv 6y agoHere's a blog post about the Workers security model: https://blog.cloudflare.com/mitigating-spectre-and-other-security-threats-the-cloudflare-workers-security-model/ https://blog.cloudflare.com/mitigating-spectre-and-other-sec... And here's a talk I gave about how Workers works more generally (not security-focused): https://www.infoq.com/presentations/cloudflare-v8/ https://www.infoq.com/presentations/cloudflare-v8/
- nikisweeting 6y agoThis page of documentation is also one of my favorite reads in the last month: https://developers.cloudflare.com/workers/learning/security-model https://developers.cloudflare.com/workers/learning/security-... So many juicy details and nuanced takes that really make me appreciate the thought and care CF has put into securing workers.