230 points · by jbott · 2mo ago · 109 comments
Honestly, while I see firecracker replacing docker on the horizon I don't see firecracker replacing v8 isolates for most edge function execution. Firstly, this article's scenario is a bit unusual in that they were using someone else's isolates - so adding on a few hops; secondly isolates running JS/TS can be statically analyzed quite well, and at scale looking historically for issues and exploits, in many edge compute scenarios this is quite desirable. MicroVMs can have an awful lot more flexibility so to get the same benefit you have to really lock down what is available - the trade-offs for mid-size companies seems to benefit isolates. Obviously netlify is more than big enough and relies heavily on this that it leans in their favour.
Fwiw, you can run this instead free and open source: https://github.com/smol-machines/smolvm
Disclaimer: Am author.
any point of comparison with microsandbox? [0]
Also: it has to be free.
So yes you're right, people confuse VC backed companies, and vibe-coded pet-projects for sustainable software.
SlicerVM was started in 2022 and internal only, plenty of YouTube videos and such about it - written completely manually from our Actuated work.
There's a free trial for anyone who wants to play about on their Mac or Linux computer, the comment here is from a real user (unprompted) that knew and used free alternatives previously.
I don’t think this is going to happen because they serve different purposes. Having to boot an entire OS inside a VM is a step backwards compared to containerisation. There are definitely use cases for isolating containers by running them inside a VM (see: Kata) but it generally ‘replacing’ docker, I don’t think that is on the horizon at all
(Also: you need KVM available, you need a rootfs to boot which will be larger than a container, it has no built in support for mounts or really any kind of communication with the host unless you explicitly set up networking etc for it)
The whole point of Firecracker over normal VM solutions is that "booting an OS" takes milliseconds.
Still, I don't think Docker is at risk of being replaced just yet because of the resource management benefits you get from sharing a kernel.
There's definitely a tradeoff, but IME it's not as drastic as you first think.
Define "OS". A barebones OS will indeed start in microseconds. But then your app/service won't. Because it will likely need a gazillion things that a barebones OS doesn't provide. Suddenly the startup time isn't microseconds or even milliseconds.
Sadly, we never got the promise of unikernels, and everything requires the full-blown OS to run anything
These days I'm looking at microvms (esp. smolvm from smolmachines.com) by default, for anything where I'd previously have reached for docker (via colima or more recently orbstack).
If it boots faster than a container ...
Also containers don't work well with remote filesystems, or filesystems in general, because the admin always limits you.
We also did a couple of technical write ups if you're interested:
- https://unikraft.com/blog/netlify-edge-functions
- https://unikraft.com/customer-stories/edge-functions-netlify
I guess I am curious if/how exactly the Netlify announcement relates to unikernels?
The idea behind Fetchable is to have a (semi) standard across runtimes and environments to be able to do this:
export default {
async fetch(req: Request): Promise<Response> {
return new Response(`Hello, ${req.headers.get("User-Agent")}!`)
}
}
Even Node.js, who are traditionally the laggards in these things, are already working on it and implementing it. This would be very useful for library writers like me to be able to standardize code across envrionments. I'm re-writing npm's `server` (currently WIP here [3]) and I have some ugly workarounds ONLY for Netlify Edge Functions.[1] https://fetchable.org/ [2] https://answers.netlify.com/t/support-fetch-for-netlify-edge... [3] https://server-js.com/
So, the execution itself might now be slower as far as we know, they just eliminated some networking from the mix? Misleading.
As far as I know, Cloudflare Workers have always executed within Cloudflare's network, not gone out to the internet and executed elsewhere (which I read as being in a hyperscaler cloud).
Perhaps the article says that, but the framing is all wrong
As they mention, the v8 latency was because the v8 runtime was hosted externally.
Firecracker has better security model.
This old thread[0] with kentonv author of Cloudflare's workers platform covers some of the differences.
When MBA (and YC startup) schools teach to build product with a "high switching cost", they do not have consumer's (in this case the developers) interests in mind.
The other issue is that outside of the core offerings (S3, EC2/Lambdas, the logging and queuing services), everything else seems to be in a perpetual state of beta with products shipped by interns. The situation is not as bad as Cloudflare but the bar's on the ground. Pre-LLM, services like Cognito caused developers no end of pain and suffering. Poor documentation, buggy products opaque console UIs, there's no end to complaints when it comes to AWS. If their services were designed well, then companies like Vercel and Heroku shouldn't exist at all.
And what's worse, with all of their efforts at squeezing customers, they still pay the worst of out of all of the big techs for non-senior leadership day to day engineering ICs. At least with Facebook there's commensurate pay. It's like Amazon took a look at Asian "996" culture and figured that if it works for their warehouse staff it should be good for the engineering folks too.
Firecracker is AWS tech, and was behind both Lambda & Fargate. I imagine it's all the enterprisey extras built on top that cause those issues.
https://github.com/firecracker-microvm/firecracker
"Firecracker was developed at Amazon Web Services to accelerate the speed and efficiency of services like AWS Lambda and AWS Fargate."
as someone who worked on it
Off-topic, but ...
I've noticed over the last 5 years I find myself increasingly incapable of understanding the title of HN posts upon first reading them.
And then sometimes also, reading the article itself does not help either.
The likely explanation is that I'm probably getting old and senile, but maybe, just maybe, I am not the only one experiencing this.
This post's title is a decent example, albeit far from the worse I've read.
I think HN should have a feature to graph the level of incomprehensibility of post titles over time.
An LLM should probably be able to measure this automatically.
Here it looks like you haven’t gotten interested or kept up with some of the field, none of “edge functions”, “v8 isolates”, and “microvms” / “firecracker microvms” are ultra novel or made up, just relatively specialised.
That sounds scary, since forked RNG states can lead to catastrophic failures in UUID generators or cryptography.
They were outsourcing to another company so there's plenty of room for overhead to creep in.
while microvm's are separate kernel + hardware virtualization through hypervisor guarantees
I wouldn't call it bad either, just different tools for different things
- i want to run untrusted user submitted code (any programming language literally, no exceptions)
- my setup is running on aws
- a new sandbox comes up every week
- we got E2B, Modal, daytona, Docker sandbox, I could probably name a 100 more
- what is the cheapest and fastest way to do this? ( i would prefer being inside AWS)
- this is for a web application so it has to be really fast