You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an API that sends several requests, gathers the results and combines the results with some processing and returns a response somewhere. I'm using the greenlet worker because the process is clearly IO Bound.
From what I've read each greenlet handling the gunicorn requests would act like a thread, so when ever a a IO blocking call has to wait for IO the greenlet will block for that particular gunicorn requests. So for example in the handler my app (using flask btw), I have several requests.get(...) the greenlet will block till next requests.get()
I could use grequests to try to add more concurrency to the handler, to improve the latency (which is something I'm looking for). But do you have any suggestion on how to do this?
Do you have any suggestions on how to do the gather of several requests?
The text was updated successfully, but these errors were encountered:
Hello all,
I'm working on an API that sends several requests, gathers the results and combines the results with some processing and returns a response somewhere. I'm using the greenlet worker because the process is clearly IO Bound.
From what I've read each greenlet handling the gunicorn requests would act like a thread, so when ever a a IO blocking call has to wait for IO the greenlet will block for that particular gunicorn requests. So for example in the handler my app (using flask btw), I have several
requests.get(...)
the greenlet will block till nextrequests.get()
I could use grequests to try to add more concurrency to the handler, to improve the latency (which is something I'm looking for). But do you have any suggestion on how to do this?
Do you have any suggestions on how to do the gather of several requests?
The text was updated successfully, but these errors were encountered: