Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Integrate gevent for concurrency #89

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sefadegirmenci
Copy link
Contributor

This pull request adds gevent support to the codebase. Gevent replaces blocking calls with asynchronous ones for increased throughput.

Moreover, the recommended number of workers for gunicorn is 2 * number of CPUs + 1 (see), but without the knowledge of our CPU count, it has not been modified. (It is 25 right now)

@yamac-kurtulus
Copy link
Contributor

You'd also need to monkey_patch psycopgs to get the benefit from gevent. It is a good idea, but a bit dangerous without a staging environment.

@sefadegirmenci
Copy link
Contributor Author

You're totally right Yamac, having a staging environment is crucial to avoid potential dangers. I will convert PR to draft, it can be further considered if we observe througput-wise problems.

@sefadegirmenci sefadegirmenci marked this pull request as draft February 7, 2023 22:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants