4 ms·
The article advocate for long-polling
by jacobr1 5y ago
The article advocate for long-polling
- sb8244 5y agoYea, you're right. I am reading the advocacy as "if you need real-time, then support long-polling." I see the value in this, but I actually disagree with the article in terms of that being the best solution. Long-polling is significantly different than polling with a cursor offset and returning data, so you wouldn't shoe-horn that into an existing endpoint.
- pak9rabid 5y agoCouldn't keeping a request open indefinitely open the system up to the potential of DoS attacks though? Correct me if I'm wrong, but isn't it kind of expensive to keep HTTP requests open for an indeterminate amount of time, especially if the system in question is servicing many of these requests concurrently?