3 ms·
To run a cgi-bin you need a host server that will execute the bin. That needs to run on a full fledged OS. When you've got an update to the script you've got to
by giantrobot 3y ago
To run a cgi-bin you need a host server that will execute the bin. That needs to run on a full fledged OS. When you've got an update to the script you've got to deploy it to that server. Every one of those things takes a little bit of time to manage.
The utility of "serverless" is it rolls up all the deployment and execution in automation. All of the infrastructure is managed externally and automatically for you. You also get auto scaling for free.
With a VPS you've got some minimal cost to leave it running. With "serverless" you're only paying for invocations. If you've got a handful of hits a day it costs so little you might not be charged for months. If you get a spike of traffic with thousands of hits you don't need to scramble to scale up your "simple" CGI server to handle the load.