On 8/8/06, Robin Haswell <[EMAIL PROTECTED]> wrote:
> CherryPy
> ========
>
> * It's slow and doesn't allow me the fine-grained control I need for my
> web projects.
> * No obvious easy way to do URL rewriting. And no controller.default()
> doesn't count.
> * I think the sluggishness is mostly because it's written in Python.
> Also I can't find a good way to let it handle multiple requests at a
> time. I wrote an AJAX in-house tool recently. It aggregates data from a
> website using BeautifulSoup. There's an option to aggregate lots of data
> at the same time, which it achieves by doing lots of XMLHTTP requests.
> CherryPy doesn't seem happy with doing more than 2 processes at a time,
> even with thread_pool increased. There could also be a locking issue.
> I'm pretty sure this isn't related to FF's "max connections/server"
> features - I'm aware of those. I know a similar PHP tool works fine.

The reason PHP works is because it lies on top of Apache. I would
recommend that you check out mod_python if you haven't already. It
allows you to plug Python code directly into each phase of Apache
request handling - and I used to do all my webapps with it before
going to TG (I had been using PHP for several years before going to
mod_python). It's very fast, and you can configure Apache any way you
like in terms of processes/threads etc.

You will need some boilerplate code - which I believe you will with
PHP anyway - but making use of Routes will go a long way and give you
maximum flexibility - plus, you can use all the great Python libraries
- sqlalchemy, markup, etc..

I have to admit myself, that if I were to write a mission-critical
application that needed to handle high loads - I would probably go
back to mod_python + homemade framework instead of TG.

Arnar

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to