Earlier quoted context omitted.
You are not the only one. I read though it, clicked around, looked at the demos, thought about bookmarking it, got to the documentation page and saw this `/api/v1/subscription/`, thought That breaks HATEOAS then left. I'm sure if I put more time into trying to understand what is going on I could figure it out, but to me, the message isn't that clear.
How does it break HATEOAS?
REST Hooks - Stop the polling madness
61–70 of 117 posts
Re: REST Hooks - Stop the polling madness
#62Earlier quoted context omitted.
We are pushing some copy updates to the homepage, most of the technical details were in docs. TL;DR coming to the homepage soon, but the gist is: REST Hooks itself is not a specification, it is a collection of patterns that treat webhooks like subscriptions. These subscriptions are manipulated via a REST API just like any other resource. That's it. Really. Thanks for the feedback!
I have no idea how this solves the fundamental push/pull networking problem. Is a network connection kept open? Is there an assumption that the user has some port open that can be contacted? I see that you somehow reduced your calls, but I don't see how. Please tell me in actual socket level networking terms how this is done; who establishes a connection to what, for what, and for how long? Also how do you deal with…
Re: REST Hooks - Stop the polling madness
#63Earlier quoted context omitted.
How does it break HATEOAS?
People argue that, with REST, versioning should be done in headers and not the url. Maybe that?
That said, I don't think this actually mandates any URLs. I read that part as just a suggestion for how it could be done.
Re: REST Hooks - Stop the polling madness
#64Re: REST Hooks - Stop the polling madness
#65Re: REST Hooks - Stop the polling madness
#66Earlier quoted context omitted.
People argue that, with REST, versioning should be done in headers and not the url. Maybe that?
Nooe, HATEOAS is about links. The official-sounding thing that this would violate is the "server should be able to organize its own namespace." That said, I don't think this actually mandates any URLs. I read that part as just a suggestion for how it could be done.
Re: REST Hooks - Stop the polling madness
#67Earlier quoted context omitted.
Nooe, HATEOAS is about links. The official-sounding thing that this would violate is the "server should be able to organize its own namespace." That said, I don't think this actually mandates any URLs. I read that part as just a suggestion for how it could be done.
Does that mean it should be possible to just have the link be "subscription"?
(I'm not saying that I think it should be that way, just elaborating.)
Re: REST Hooks - Stop the polling madness
#68Earlier quoted context omitted.
We are pushing some copy updates to the homepage, most of the technical details were in docs. TL;DR coming to the homepage soon, but the gist is: REST Hooks itself is not a specification, it is a collection of patterns that treat webhooks like subscriptions. These subscriptions are manipulated via a REST API just like any other resource. That's it. Really. Thanks for the feedback!
I have no idea how this solves the fundamental push/pull networking problem. Is a network connection kept open? Is there an assumption that the user has some port open that can be contacted? I see that you somehow reduced your calls, but I don't see how. Please tell me in actual socket level networking terms how this is done; who establishes a connection to what, for what, and for how long? Also how do you deal with…
As for timeouts, check out http://resthooks.org/docs/retries/ for ideas on how those problems can be solved.
Re: REST Hooks - Stop the polling madness
#69There should be some standard link relation like so clients have some hint that this is available and where to request it.
I'd also want some way to manage the freshness/load tradeoff, like "please notify me within one hour but no more than every five minutes".
Re: REST Hooks - Stop the polling madness
#70Earlier quoted context omitted.
We are pushing some copy updates to the homepage, most of the technical details were in docs. TL;DR coming to the homepage soon, but the gist is: REST Hooks itself is not a specification, it is a collection of patterns that treat webhooks like subscriptions. These subscriptions are manipulated via a REST API just like any other resource. That's it. Really. Thanks for the feedback!
I have no idea how this solves the fundamental push/pull networking problem. Is a network connection kept open? Is there an assumption that the user has some port open that can be contacted? I see that you somehow reduced your calls, but I don't see how. Please tell me in actual socket level networking terms how this is done; who establishes a connection to what, for what, and for how long? Also how do you deal with…