I am trying to create this service which makes async http calls. For this I am using gevent with a set of greenlets defined in a pool.
The users will make a request to this service which will be put in a queue. Now the greenlets in the pool will read from the queue, make corresponding http calls to fetch data related to the request. I am wondering how many greenlets should I spawn. I am not sure whats the cost of each greenlet?
How do I define the number of greenlets?