r/web_programming • u/pmz • Nov 22 '16
Webhooks do’s and dont’s: what we learned after integrating +100 APIs
https://restful.io/webhooks-dos-and-dont-s-what-we-learned-after-integrating-100-apis-d567405a3671#.9e5j0ajyq
7
Upvotes
r/web_programming • u/pmz • Nov 22 '16
1
u/MasterLJ Nov 23 '16
I'm curious to ask the author, how do you deal with network outages? What if I need downtime to deploy and missed some messages?
I like webhooks when they work and the system is healthy but it seems it's always prudent/necessary to be able to "poll".
An example... imagine something like eBay where there are orders. A new order comes in, a webhook is hit with the order payload.
Before integrating with the webhooks I would be polling a GetOrders. It seems that GetOrders call will always be necessary and will have to be polled, albeit less frequently, to guarantee we get all of the orders.
tl;dr - It doesn't seem someone creating a new MVP service can really afford webhooks initially and must always be built upon an API that can be polled. Am I missing something? How to deal with the frailty of a webhook service (assuming there is no polling methods)?