title: How to share db connection like session across different users?
body: <p>We're using Soaplib - Soap Server with apache/mod_wsgi and sqlalchemy as ORM for mysql connection.</p>
  
  <p>We tried to use <code>global dict</code> to store the db session handled by sqlalchemy - <code>makesession</code> connection.</p>
  
  <p>But when we move our code to the production environment using mod_wsgi it won't work, as it creates different processes for each request</p>
  
  <p>So currently we've set <code>WSGIDaemonProcess example processes=1 threads=1</code> but it isn't a good solution.</p>
  
  <p>What could be ideal solution to use global db connection pool to share db session across all requests?</p>