I have a question related to this older question:
What exactly is a pre-fork web server model?
We had an internal discussion and a more senior dev insisted I was wrong. The disuccsion was around database connections.
When you deploy a wsgi application using gunicorn and you have 5 sync workers, I assumed that each worker is a completely separate process hosting the full wsgi application without any sharing with any other process or the master process.
In essence I wanted to explain that using a database connection pool probably doesn't make sense as each process will ever only have 1 active request and hence only ever needs 1 active connection. And that if you make a pool, all 5 workers will have their own completely separate connection pool so you end up with too many connections.
So my question is, are my assumption right or is the other dev right that claims the connection pool will be shared among synchronous workers?