On 20.05.2007., at 17:04, Christian M Hoeppner wrote:

> mod_python holds code in memory, just like mod_perl. This makes  
> things go a
> whole lot faster. FCGI is the "traditional" way of doing things.  
> For every
> request a new call (and perhaps a new spawn) is made to the fcgi  
> binary. This
> makes is neat for very-low-load apps, and for loosy coders, as the  
> memory is
> flushed for every new call.

Just to clarify ...

FastCGI (FCGI) is *not* CGI, it will not start a new process for  
every request (like CGI does).

See: http://www.fastcgi.com/

> Whenever posible, I'd go with mod_python. FCGI is not bad, but  
> requires a bit
> more memory and processor time.

Well, I'm not trying to start flames here, but with mod_python  
*every* apache process have full python interpreter loaded needed or  
not. Yes, I know that recommended Django practice is that you have  
separate web server for the static content, but ... ;)

I prefer FastCGI because it gives me a nicer separation of the web  
content (static data) handled with web server process and the dynamic  
data which is handled via FastCGI. All that with (at least) same  
performance as mod_python.

Also if you use FastCGI for the other languages (perl, PHP,  
Ruby, ...) you don't have to load mod_* for them also (mod_python  
together with mod_php can create some "interesting" problems ;) ).

With this setup I can have very light and fast apache instance (just  
mod_rewrite and some other mods) in front of lot's of applications  
(PHP, Django, ...) handled via FastCGI. Added bonus is that every app  
is running as a different user.

-- 
Nebojša Đorđević - nesh, ICQ#43799892, http://www.linkedin.com/in/ 
neshdj
Studio Quattro - Niš - Serbia
http://studioquattro.biz/ | http://code.google.com/p/django-utils/
Registered Linux User 282159 [http://counter.li.org]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to