News for hackers. Stuff that matters.
Re:Ask HN: What is your go-to example for a good REST API? by infinite8s on Friday June 24, 2016 @04:12PM (#11973066)
If you have to poll then it's not asynchronous. A better design would utilize something like webhooks.
Re:Ask HN: What is your go-to example for a good REST API? by bjt on Friday June 24, 2016 @06:32PM (#11974006)
> If you have to poll then it's not asynchronous.

Says who?

Maybe not "streaming". Maybe not "real time". But certainly asynchronous.

Re:Ask HN: What is your go-to example for a good REST API? by bryanlarsen on Friday June 24, 2016 @04:28PM (#11973202)
Yes, we have webhooks, and a grand total of 1 of our customers uses them. Setting up an HTTP server just to receive a webhook is a lot to ask.

Long poll lets the polling be efficient.

Re:Ask HN: What is your go-to example for a good REST API? by kasey_junk on Friday June 24, 2016 @07:46PM (#11974384)
All push models are poll models down an abstraction layer.
Re:Ask HN: What is your go-to example for a good REST API? by infinite8s on Friday June 24, 2016 @08:44PM (#11974601)
And all computations can be modeled as Universal Turing Machines at some level. That doesn't mean it's the most useful level at which to analyze the semantics of what you are trying to accomplish.
Re:Ask HN: What is your go-to example for a good REST API? by kasey_junk on Friday June 24, 2016 @09:26PM (#11974729)
Sure but saying something isn't asynchronous because its polling is flat wrong.