About Concurrent Connections
The number of concurrent connections typically depends on a number of CPUs and Gunicorn workers.
The formula many use is:
1 |
|
For a typical small to medium Django site using Gunicorn:
- 2-4 workers is common for smaller sites.
- Each worker can handle around 2-12 concurrent connections.
- So approximately 4-48 concurrent connections total.
For medium to larger sites:
- 4-12 workers is typical.
- Which allows for roughly 8-144 concurrent connections.
If you use Whitenoise and serve static files via Gunicorn too, you should take into account that each static file will block the connections for other users.
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You