News for hackers. Stuff that matters.
Re:Give me /events, not webhooks by jacobr1 on Tuesday July 13, 2021 @03:33PM (#27825233)
The article advocate for long-polling
Re:Give me /events, not webhooks by sb8244 on Tuesday July 13, 2021 @03:41PM (#27825338)
Yea, 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.

Re:Give me /events, not webhooks by pak9rabid on Wednesday July 14, 2021 @11:46AM (#27834417)
Couldn'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?