by doublerabbit · 3y ago · 0 comments
I use FreeBSD for everything from my colocated servers, to my own PC. By no means am I developer; seasoned Unix Admin at best. Bare-metal forever but welcome to the future. Especially anything that contributes to the OS.
However I hear buzz words like Lambda and Firecracker and really have no idea where the usage is. I get docker, containers, barely understand k8s but why do you need to spin up a VM only to tear it down compared to where you could just spin up a VM and use it when you really need to. Always there, always when.
Is it purely a cloud experience, cost saving exercise?
Allows you to build a compute plane where any node in the plane can service the traffic for any application.
Any one application can dynamically grow to consume the available free compute of the plane as needed in response to changes in traffic patterns.
Applications use no resources when they aren't handling traffic.
Growing the capacity of the compute plane means bringing more nodes online.
Can't come up with a use case for this beyond managing many large-scale deployments. If you aren't working "at scale" this is something that would sit below a vendor boundary for you.
As it turns out, a lot of APIs for phone apps fit this category. You don't want a machine sitting around idle 99% of the time to answer those API calls.
and always charging you :)
Firecracker has a much amaller overhead compared to regular VMs - which makes the (time and compute) costs of spinning up new VMs really low. This can be an advantage, depending on how chunky your workloads are - the less chunky they are - the more they can take advantage of finer-grained scaling.
Sometimes you just want to slap some lines pf code together and run them from time to time, and don’t need a whole server (physical or virtual) for that.
Sometimes you have no idea if you’ll have to run a piece of code 100 times a day or 10’000’000 times a day.
Sometimes you don’t feel like paying a whole month for and maintaining a whole instance for a cronjob that lasts 20 seconds, and maybe it runs once a week.