Comment by teacpde
2 months ago
Workers are in the same process but have separate heap, global vars, gc etc, the isolation is managed and achieved by V8. It is much lightweight compared to micro VM or containers. But the downside is you have to use JS because of V8.
I get that but it’s much less secure. ie. If an agent finds a bug in V8 it’s over