Skip to content

Comment on The Valley of Webhooksparent

Comments

Assuming you're not using the proposed streaming option, I suppose you could always send a webhook for that fact alone? In other words, an empty notification, with semantics of "something has probably changed, better poll the SCROLL if you aren't already".

Doesn't doing that just reinvent eTags on hypertext resources from the RESTful wars and XML Web Services days 20 years ago?

1. Long Poll the cursor to pull down the latest events

2. Trigger a long-poll even if in exponential backoff because they shot you a webhook saying 'eTag changed!'

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.