I am using Python requests
in celery workers
to make large number of (~10/sec) API calls(includes GET,POST, PUT, DELETE). Each request takes around 5-10s to complete.
I tried running celery workers in eventlet
pool, with 1000 concurrency.
Since requests
are blocking process each concurrent connection is waiting on one request.
How do I make requests
asynchronous?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…