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?
[ Parent
| on HN ]
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.
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.