The scripts would be long-running, but don't require much computational power. Just a few arithmetic operations on an array every second. The array is being fed in via WebSocket.
The scripts would be long-running, but don't require much computational power. Just a few arithmetic operations on an array every second. The array is being fed in via WebSocket.
Using Firecracker directly is pretty straightforward: https://jvns.ca/blog/2021/01/23/firecracker--start-a-vm-in-l...
gVisor gives you all the container tooling, which may or may not be useful.
And, because I'm a shill, we actually shipped an API specifically for this kind of use case. So if you'd rather not build it all yourself, we can help: https://fly.io/blog/fly-machines/
Thank you for linking gVisor, went through the docs real quick and it looks very promising for my use case.
Happy to expand more of my experience of making this work at scale.
https://news.ycombinator.com/item?id=32289979 (70 points, 16 comments)
and
https://news.ycombinator.com/item?id=32287798
Both links include hot takes from a tech lead for CF Workers (@kentonv).