I need to receive long polling requests from a javascript client and, based on the request message, constantly poll a REST API until true
is returned. Is something like eventlet
with a green threading model suitable for this? If so what will be the best way to handle it?
Javascript <==long polling ==> Python Server <==simple polling==> REST API
There can be a maximum of 200 sessions in parallel from the Javascript client, but in general there will be 3-4 active at a time.