Sanjay schrieb:
> Hi All,
> 
> It might be a novice question on deployment. I am a TurboGears guy
> since long, but still new to certain things like deployment etc. So,
> pl. bear with me if my words are not exact and technical.
> 
> A couple of days back I was presenting about TurboGears to a PHP web
> architect. He was of the view that PHP behind Apache is faster because
> it doesn't have to create new instances per request or queue requests.
> 
> But frameworks like RoR create new instances for each request and
> hence is not preferable for high traffic sites.
> 
> CherryPy applications, as I have understood, do similar thing as PHP
> and should be at par. So, reverse proxing a TG Application behind
> Apache or NginX should be at par with a PHP+Apache deployment.
> 
> Is my understanding ok?

No. There are many things to say about this, and some have been said. 
But take for example sessions in PHP: they do have to be loaded from 
disk, for every request. Granted, the OS-FS-cache *can* maybe speed that 
up - but serving them from memory all the time is for sure more perfomant.

So it is wrong that PHP doesn't have to create any instances - it sure 
does, and even worse, it *can't* possibly use memory-caching techniques 
to prevent that.

Then PHP as language is much slower than Python.

Diez



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

Reply via email to