How do I poll concurrently to another server on receiving multiple long poll requests from javascripts? [closed] How do I poll concurrently to another server on receiving multiple long poll requests from javascripts? [closed] flask flask

How do I poll concurrently to another server on receiving multiple long poll requests from javascripts? [closed]


I did not see a reason stated against using web sockets.. so I'll link this comparison between long polling and websockets

In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?

There's a ton of existing libraries you can use for both python and js for this type of communication.

(my vote is for websockets)

Edit:
Some libs to consider:
http://socket.io/
https://pypi.python.org/pypi/websockets


It is only matter of taste - 200 sessions (even all active) it is not a challenge either for Tornado, aiohttp, gevent. I personally prefer Tornado and aiohttp over gevent, Twisted...


For given requirements, you can use absolutely any library/framework and any choice will be fine. You can even use OS threads and not feel any downsides. What matters here is which tool your team knows better.