News for hackers. Stuff that matters.
Re:Serverless Golang API with AWS Lambda by candiodari on Sunday January 21, 2018 @01:38AM (#16197126)
After reading through all of this I'm like ...

"Yep, that's cgi"

For the not-yet-old farts: https://en.wikipedia.org/wiki/Common_Gateway_Interface

(Note CGI capable accounts are still available for WAY cheaper than on Amazon at a great many hosters)

(And no, the program is not restarted every request: https://en.wikipedia.org/wiki/FastCGI )

(You can even get ones that "autoscale" because the load is sharded on the hosters side, meaning the CGI will start up on a number of different servers - can be pretty high - when required, and only when required)

Implementations for pretty much every language are available.

Serverless does, of course, mean WAY less efficient (but you're charged for that by Amazon, so that's a plus, not a minus for cloud providers), far less language implementations than cgi, less support, closed source, much bigger memory usage, ...

Re:Serverless Golang API with AWS Lambda by candiodari on Sunday January 21, 2018 @03:09AM (#16197283)
Why the downvotes ? What is the difference between serverless and something like fastcgi ?
Re:Serverless Golang API with AWS Lambda by scrollaway on Sunday January 21, 2018 @04:29AM (#16197428)
There is no fastcgi implementation which autoscales based on the amount of concurrency expected.
Re:Serverless Golang API with AWS Lambda by jacques_chester on Sunday January 21, 2018 @07:30PM (#16200968)
Arguably, there is: https://php-fpm.org/
Re:Serverless Golang API with AWS Lambda by candiodari on Monday January 22, 2018 @12:15AM (#16202103)
Or even just having your provider distribute the load of a number of servers. The same FastCGI handlers will startup on many actual machines, providing a measure of scaling.