3 ms·
Yep, I've been thinking a lot about "serverless is pretty much CGI". But actually, Lambda can keep your server open to serve multiple requests without spawning
by floatboth 9y ago
Yep, I've been thinking a lot about "serverless is pretty much CGI".
But actually, Lambda can keep your server open to serve multiple requests without spawning new processes all the time.
I realized that the key feature is not having the server open all the time, only when necessary. So I took systemd's socket activation idea and added socket deactivation, i.e. sending SIGTERM to the server after a period of inactivity: https://github.com/myfreeweb/soad https://github.com/myfreeweb/soad
Plus, one of the things that really deserves more hype and popularity is CloudABI https://nuxi.nl https://nuxi.nl an ABI that lets you have one binary that runs on multiple operating systems as is and always runs sandboxed.
The serverless runtime of my dreams just takes CloudABI binaries (packed with files in a tarball) that listen for HTTP on a given socket, and does the activation-deactivation thing to only run on demand :)