Dang_Perl!
Jan. 16th, 2004 02:28 amIt is NOT pleasant to discover, when you finally think you've worked out how to set up a web site the way you want, one little niggling detail that you need to look up, and it leads to an entire humungous internet flame war with entrenched camps that you didn't know you didn't know about, and they are fighting over which, of the two different ways of doing the thing you want to do, is superior, and you realize just how much crap you're going to have to wade through in order to make an informed decision.
no subject
Date: 2004-01-16 03:11 pm (UTC)no subject
Date: 2004-01-16 03:26 pm (UTC)no subject
Date: 2004-01-16 03:27 pm (UTC)no subject
Date: 2004-01-16 03:36 pm (UTC)Here are the things I don't understand:
Perhaps we have a Clash of Cultures going here ;).
no subject
Date: 2004-01-16 03:46 pm (UTC)Yup. I'm weird. *hangs head in shame*
no subject
Date: 2004-01-16 03:54 pm (UTC)no subject
Date: 2004-01-16 03:41 pm (UTC)no subject
Date: 2004-01-16 10:52 pm (UTC)Embedded Code
- Greater access to server internals.
- More popular, therefore more online help/documentation.
- Server can dynamically allocate resources to embedded code as needed.
- Program bugs (ie memory leaks) can cause the need for frequent server reboots, or can even corrupt the server.
- Upgrading the code while server is running is very difficult.
- Small tasks have vanishing fixed effort to implement.
FastCGI- Separate code makes for a faster, leaner server.
- URL dispatch is simpler (no need to decide in which of 11 server phases to intervene).
- No access to server internals
- Speed-critical code can be, for example, hand coded in assembler.
- Load balancing is (to a large degree) the problem of the task, not the server.
- Code upgrades can be handled by the task, or you can just abort an old task and the server will respawn the task when needed, using the current code.
- Some coding effort required, even for trivial tasks.
So, it looks like I'm currently leaning towards the FastCGI method since what I'm doing is not going to be trivial, I anticipate numerous code changes during the life of the site and I don't see a need for access to the guts of the server. FastCGI also scales better, but only when you start talking of millions of hits per day, and at that point there's a whole bunch of changes that would be required anyway. I am still willing to consider arguments that go the other way though.no subject
Date: 2004-01-17 04:59 am (UTC)So I dunno. I used to enjoy the cgi-style interface, very clean, as you say, but if you have simple things handled by scripting, the overhead sucks. But the whole web technology always sucks, overhead-wise, because everything is inept and assumes that strings are free, regardless of length....
no subject
Date: 2004-01-17 06:20 am (UTC)no subject
Date: 2004-01-17 06:24 am (UTC)