5 ms·
I understand the sentiment, but to be fair, CGI doesn’t give you an infinite scalability. AWS Labmda based solution is far less susceptible to something like HN
by untech 2y ago
I understand the sentiment, but to be fair, CGI doesn’t give you an infinite scalability. AWS Labmda based solution is far less susceptible to something like HN hug-of-death.
- loloquwowndueo 2y agoBut it’s entirely susceptible to your wallet being hugged to death if someone decides to ddos you.
- afavour 2y agoThat’s a trade off many businesses are very happy to make! Spike in traffic = spike in sales. For an actual DDOS there’s always WAF firewalling. I have to admit I don’t get the lambda hate. You don’t have to use them but there is a valid use case for them.
- coryrc 2y agoInstead your wallet gets ddos'd.
- chubot 2y agoCGI can definitely scale infinitely!! It's stateless. PHP can scale to all of Facebook's front ends, and so can CGI. Because they are stateless. Same with FastCGI. FastCGI just lets you reuse the process, so you don't have the "cold start" every time > CGI had the original "cold start problem" It's just that nobody has implemented a cloud that uses the CGI or FastCGI interfaces. I quoted this same article in a blog post yesterday: Comments on Scripting, CGI, and FastCGI - https://www.oilshell.org/blog/2024/06/cgi.html https://www.oilshell.org/blog/2024/06/cgi.html
- afavour 2y agoThis maybe gets to the core of why the author’s assertion is incorrect: they’re comparing a programming language to an execution environment. Yeah, PHP can scale infinitely… if you provide it with the necessary server resources to do so. PHP is not going to scale infinitely on a Raspberry Pi. This dynamically scaling server resource is Lambda. Hell, you can even run PHP on Lambda these days the comparison really doesn’t work.
- liveoneggs 2y agoWe often hit lambda max quotas and scaling limits: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-... https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html#concurrency-quotas https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurre...
- troupo 2y ago> but to be fair, CGI doesn’t give you an infinite scalability. That your startup with three users will never need. Your startup with a million users will not need it either
- hooverd 2y agoLambda doesn't either. Unless you ask AWS support nicely.