I've got a Pyramid application running on apache with mod_wsgi.
What is the lifeline of my application whenever a request is created?
Does my application get produced (which entails loading the configuration, creating the database engine) whenever a request is available in? When utilizing paste serve, this is not the situation. However with mod_wsgi - how do you use it? When does the applying "terminate"?

To begin with, read:

http://blog.dscpl.com.au/2009/03/python-interpreter-is-not-created-for.html http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading

Initialisation isn't done on the per request basis. In usually the application should persist in memory between demands. Within the situation of embedded mode then you definitely might be subject to Apache regarding if this recycles processes.