News for hackers. Stuff that matters.
Re:Give me /events, not webhooks by kissgyorgy on Tuesday July 13, 2021 @02:26PM (#27824369)
What's the point of implementing webhooks once you implemented long polling for the /events endpoint?
Re:Give me /events, not webhooks by mbrevda1 on Tuesday July 13, 2021 @03:40PM (#27825316)
I'd argue against long/persistent polling. Webhooks allows for zero resource usage until a message needs to be delivered.
Re:Give me /events, not webhooks by zimpenfish on Wednesday July 14, 2021 @01:50AM (#27830077)
> Webhooks allows for zero resource usage until a message needs to be delivered.

Doesn't that only work in the case where the server treats each webhook delivery as ephemeral? If you're keeping a queue to allow reliable / repeatable delivery, that's definitely not "zero resource usage", right?

Re:Give me /events, not webhooks by kissgyorgy on Wednesday July 14, 2021 @03:05PM (#27837026)
On the sender side, sure. On the receiver side? You have to have a service listening 0-24.
Re:Give me /events, not webhooks by luuio on Tuesday July 13, 2021 @02:32PM (#27824449)
I don't think the original comment meant long polling (i.e. keeping the connection alive), they meant periodically call the endpoint to check for events.
Re:Give me /events, not webhooks by cwyers on Tuesday July 13, 2021 @02:40PM (#27824531)
The article advocates for long polling of endpoints.