well I'm a performance person and I hate wasting time because of bad/
sloppy design and implementation. And even for low volume apps, a well
tuned app will have a better response time, as well as higher load
capacity and better sclalability.

In pure request per second I made a bunch of tune-up that resulted in
these improvements:
1. Use python2.6 ==> +5%
2. Use memcached to store sessions ==> +10%
3. Make sure session is loaded and saved only once instead of multiple
time during a request ==> 5-10%
4. Use cherryPy instead of paste HTTP server ==> 5-10%
5. Use nginx as a proxy instead of apache => 25% (and save 15MB per
worker)
6. Remove redunandant code from middleware (e.g. cache middleware)
7. Use mutiple processes instead of just increasing the number of
threads in a single paster app server => 15-20%
8. Cache pages in memcached, and have nginx bypass app server by
fetching directly from memcached (and use ssi to render dynamic
fragments) ==> 150%

With all these small fixes and optimizations I end up with something
that's X-times faster and is noticeable even for low volume apps due
to much better response time improving the user experience.

Not to mention that I keep a scalable upgrade path by making sure each
component can easily be move to a different machine (e.g. => dont use
mod_wsgi or local caches).


On Jan 11, 1:02 pm, "Mike Orr" <[email protected]> wrote:
> Does Tycon's application actually *need* to be ultra-conservative on
> overhead, or is this more of an aesthetic desire?  I.e., would it
> actually not run, or require more servers, if all these steps weren't
> taken?  Some applications are so high-load that they require all these
> steps, but many applications don't.
>
> --
> Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to