3 ms·
(Yikes) I feel compelled to remind the folks complaining about webhooks arriving out of order of the fallacies of distributed computing. https://en.wikipedia.o
by politician 8y ago
(Yikes) I feel compelled to remind the folks complaining about webhooks arriving out of order of the fallacies of distributed computing.
https://en.wikipedia.org/wiki/Fallacies_of_distributed_computing https://en.wikipedia.org/wiki/Fallacies_of_distributed_compu...
For goodness sakes, log webhooks to a queue and rebuild the object graph later by probing their API. I would be absolutely blown away if Stripe recommended that folks attempt to process these inline (simple tutorial-level example code notwithstanding).
EDIT: And for your own sanity, assume 50% of the webhooks you expected to arrive didn't. Schedule a periodic task to scrape transactions from their API.
- dbbk 8y ago> EDIT: And for your own sanity, assume 50% of the webhooks you expected to arrive didn't. Schedule a periodic task to scrape transactions from their API. I'm pretty sure the Webhooks keep retrying until they get a success response back from your server.
- quelltext 8y agoThey do that but not forever: https://stripe.com/docs/webhooks/best-practices#retry-logic https://stripe.com/docs/webhooks/best-practices#retry-logic
- quelltext 8y agoYeah, this is specifically pointed out here: https://stripe.com/docs/webhooks/best-practices#acknowledge-events-immediately https://stripe.com/docs/webhooks/best-practices#acknowledge-...