4 ms·
Can you elaborate on this? How would doing crypto demonstrate the security of the isolate?
by zackbloom 8y ago
Can you elaborate on this? How would doing crypto demonstrate the security of the isolate?
- mayank 8y agoNail the CPU and ensure that other isolates on the same process/machine don’t get starved. I meant isolation more than security.
- kentonv 8y agoDifferent isolates can run concurrently on different threads, so pegging the CPU in one isolate doesn't block any others. Also, if a worker spends more than 50ms of CPU time on a request, we cancel it, terminating execution of the worker even if it's in an infinite loop. (Almost all non-buggy Workers we've seen in practice use more like 0ms-2ms per request. Note this is CPU time; time spent waiting for network replies doesn't count.)