I recommend CGI instead of web frameworks
halestrom.net
I recommend CGI instead of web frameworks
1–10 of 89 posts
Re: I recommend CGI instead of web frameworks
#2Re: I recommend CGI instead of web frameworks
#3I love the simplicity of CGI, it was ~2002 when I read about it in a book on Linux and had my first server-side generated HTML output a couple of minutes later. But: It has no place in todays world except of educational use. Especially the fact, that every HTTP request would spawn a full new process makes it unfeasible for any serious webapp.
Re: I recommend CGI instead of web frameworks
#4Re: I recommend CGI instead of web frameworks
#5I love the simplicity of CGI, it was ~2002 when I read about it in a book on Linux and had my first server-side generated HTML output a couple of minutes later. But: It has no place in todays world except of educational use. Especially the fact, that every HTTP request would spawn a full new process makes it unfeasible for any serious webapp.
How about FCGI?
Re: I recommend CGI instead of web frameworks
#6I love the simplicity of CGI, it was ~2002 when I read about it in a book on Linux and had my first server-side generated HTML output a couple of minutes later. But: It has no place in todays world except of educational use. Especially the fact, that every HTTP request would spawn a full new process makes it unfeasible for any serious webapp.
How about FCGI?
Re: I recommend CGI instead of web frameworks
#7I love the simplicity of CGI, it was ~2002 when I read about it in a book on Linux and had my first server-side generated HTML output a couple of minutes later. But: It has no place in todays world except of educational use. Especially the fact, that every HTTP request would spawn a full new process makes it unfeasible for any serious webapp.
That's overly strong. I will create a CGI app every now and then. I can use basically any language I want. Not a lot of thought has to go into it. As the article says, it's a simple approach that makes sense for those of us that aren't so familiar with web development (we're usually making those apps for ourselves). In particular, the "you can never have too many dependencies" philosophy of modern web developers is strange to me.
Re: I recommend CGI instead of web frameworks
#8Re: I recommend CGI instead of web frameworks
#9I think it's fine to play with CGI to learn, but I wouldn't push that to production.
Re: I recommend CGI instead of web frameworks
#10I love the simplicity of CGI, it was ~2002 when I read about it in a book on Linux and had my first server-side generated HTML output a couple of minutes later. But: It has no place in todays world except of educational use. Especially the fact, that every HTTP request would spawn a full new process makes it unfeasible for any serious webapp.
How about FCGI?
Once you've switched to hard-compiled Go, vs. some interpreted language, you've obtained most of the possible speedups.
That's really all you need. I have a moderately busy server that's been up for over a thousand days without a reboot or restarting the FCGI service running under Apache.
You have to have a huge load before FCGI, multiple servers, a load balancer, and back-end database machines are not enough. Wikipedia used to run on something like that, until they hired too many people and had to keep them busy.