3 ms·
Main reason to avoid long polling is the awful scalability (compared to plain old socket programming).
by Codhisattva 13y ago
Main reason to avoid long polling is the awful scalability (compared to plain old socket programming).
- jconley 13y agoProcessing the poll request certainly has a bit of a CPU/memory/network overhead. Though any sort of keep-alive would require something similar. I'm sure we'll get fancier with WebSockets when we have to rent too many new servers because of this stuff. The simplicity and elegance of overloading the RESTful HTTP system was the most appealing bit for me with this architectural experiment.
- mietek 13y agoAs I understand, Server Sent Events are plain old HTTP, unlike Web Sockets.