4 ms·
We run a separate virtual machine for each request, so there’s no need for garbage collection I'm curious to see the impact of this strategy on performance.
by tambourine_man 11y ago
We run a separate virtual machine for each request, so there’s no need for garbage collection
I'm curious to see the impact of this strategy on performance.
- Matthias247 11y agoI wondered about this sentence. If you would apply scripting functionality to serve long-running websocket or HTTP/2 connections I'm sure garbage collection would be necessary. However if the scripts are really per request and not per connection then it could work - but the capabilites would be much more limited then what you can do in other scripted-webserver-environments (e.g. node).
- sitkack 11y agoA VM context could be cheap to create and include an amount of memory above what that script uses for its lifetime. Meaning a single allocation and then the whole thing gets free'd at the end of execution. Analogous to how CGIs execute.
- Rygu 11y agoSlightly off-topic, but I wouldn't worry. Nowadays hypervisors can boot up complete OSes in ~800ms. https://insights.ubuntu.com/2015/05/18/lxd-crushes-kvm-in-density-and-speed/ https://insights.ubuntu.com/2015/05/18/lxd-crushes-kvm-in-de...