Skip to content

Comment on The Valley of Webhooks

Comments

Ask with a cursor and you resume where you left off.

How does the provider know what event the cursor you provided refers to?

Sounds like external state that needs to be managed ("cursor" -> timestamp)

weliOP

That is completely fine. In the spec cursors just need to be lexicographically comparable. They could easily be timestamps if the provider chooses to. In many of my example they are just alphanumeric dictionaries.

AboutSource Built by g1lg1l

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