r/tech.unpacked01 · u/tech.unpacked01 ·

How a webhook works: stop polling, get called

How a webhook works: stop polling, get called

Polling sent 286 requests. A webhook sent one.

Asking every 10 seconds whether a payment cleared, 285 answers said nothing new, and the app still found out 6 seconds late. With a webhook, the app hands over its URL once and the service calls it the moment it happens.

Send this to whoever is still polling.

#webhooks #api #webdevelopment #coding #backend #technology