5 ms·
They do. It's just that everyone seems to have collectively decided that cgi shouldn't be used anymore.
by Blackthorn 4y ago
They do. It's just that everyone seems to have collectively decided that cgi shouldn't be used anymore.
- jeroenhd 4y agoCGI has become "serverless" and it's hyped up to no end. The more things change, the more they stay the same.
- hestefisk 4y agouse CGI; use strict;
- larve 4y agoThanks for the comment! I think the "the more things change, the more they stay the same" is a great thing, and something to very much be aware of and study. The move back and forth from backend state to frontend state to slim apps to fat apps has been going on since the 60ies, and is driven by ultimately hardware and networking costs. The underlying patterns are all fairly well understood, which means that knowing both approaches and being aware that things are going to slosh back and forth heavily simplify long term design. I haven't written these thoughts out, but in many ways the codebase (as in, how your files are organized) is largely independent of how your code is actually deployed and where it runs. If you are aware that some business logic might one day run in the frontend on the client device, and 4 years later might make more sense ot run in a lambda, that's something you can architect for. Serverless / stateless is ultimately "functional programming". If you write your code as a side-effect free function, leveraging technologies like WASM, you can keep the same code, and deploy it frontend or backend or both or as a lambda or as a single node worker, and the code itself won't change. These are the things that next.js and vercel and edge computation leverage, but it is true in every codebase (embedded, desktop applications, etc...).
- NateEag 4y agoWith the crucial difference that "serverless" is proprietary and uses different APIs, so you can't just go to whatever hosting company you want.
- jeroenhd 4y agoOf course, vendor lock-in is a feature because once developers leave a company, someone else with the necessary proprietary knowledge needs to replace you. Spread proprietary cloud stuff like the plague and you'll always be employable somewhere!
- cutler 4y agoIt's often misunderstood that a lot of the much-vaunted cheap hosting providers offer PHP only as a CGI. You would typically pay extra for mod_php.