Live data from Hacker News

The demise of the mildly dynamic website (2022)

devever.net

181–183 of 183 posts

Re: The demise of the mildly dynamic website (2022)

#181

Earlier quoted context omitted.

Why not read the PHP docs and any tutorials they might have? The docs are pretty comprehensive.

Because they're mostly a vast array of reference docs with just one simple tutorial that barely scratches the surface? https://www.php.net/manual/en/index.php

[flagged]

Re: The demise of the mildly dynamic website (2022)

#182

"Or, suppose a company makes a webpage for looking up products by their model number. If this page were made in 2005, it would probably be a single PHP page. It doesn't need a framework - it's one SELECT query, that's it. If this page were made in 2022, a conundrum will be faced: the company probably chose to use a statically generated website. The total number of products isn't too large, so instead their developers…

epa.gov is another example

Re: The demise of the mildly dynamic website (2022)

#183
post #50
post #35

Earlier quoted context omitted.

The author’s assertion isn’t correct though. Yes, technically speaking a PHP script that isn’t being executed isn’t itself costing you money. But it’s stored on server that is running 24/7 and is costing you money. Set up in the traditional way, CGI/PHP is priced by server uptime, be that per hour, per day, per month, whatever. The server runs all the time, it waits for requests, it processes them. By contrast Lambda…

There's nothing stopping anyone from implementing a cloud that runs CGI or FastCGI that scales down to zero (with per second billing), and scales up to infinity. It's just that nobody has chosen to do so Though I suppose not without reason. Google App Engine was one of the first "PaaS", billed on a fine-grained level, and it WAS initially based on CGI. Later they changed it to in-process WSGI, probably because workin…

> There's nothing stopping anyone from implementing a cloud that runs CGI or FastCGI that scales down to zero (with per second billing), and scales up to infinity. It's just that nobody has chosen to do so

I think in discussions like this it's often helpful to think of Lambda not as a technology but as a product. Lambda isn't "CGI with extra steps", it's "CGI with per second billing", which is a rarer offering.

Post reply on HN