Hi,

Just looking for some best practice advice for using mpm-worker mod_wsgi
with shared objects.

Two examples of this include access to the jinja2 template environment and a
SQLAlchemy session spawner for database queries. We would like to be able to
easily access these from different parts of the application but
are concerned about thread safety.

Is it safe to set these up as a global values in a package so it can be
imported to any script?

Does any of this change with regards to Embedded or Daemon mode?

I guess the other thing to consider is that this may depend on the thread
safety of the third party libraries as opposed to mod_wsgi.

Regards,

Brad

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to