SQLAlchemy connection pool within multiple threads and processes
- 7 minutes
- sqlalchemy, postgres, python, gunicorn
SQLAlchemy and Postgres are a very popular choice for python applications needing a database. While using them in the context of a python WSGI web application, I’ve often encountered the same kinds of bugs, related to connection pooling, using the default configuration in SQLAlchemy.