Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.1 Subscription Migration #141

Open
aaronpk opened this issue Oct 25, 2017 · 1 comment
Open

7.1 Subscription Migration #141

aaronpk opened this issue Oct 25, 2017 · 1 comment

Comments

@aaronpk
Copy link
Member

aaronpk commented Oct 25, 2017

7.1: “Subscription Migration”

Unclear how this should work and the text suddenly uses the term "clients". How should a subscriber learn about this? It discovers once on the publisher and then only communicates with the hub.

In 8 you write "A hub MAY use discovery from time to time to detect changes in a topic's canonical URL", which probably should read "A Subscriber MAY". This information is fundamental in 7.1, which itself would be better suited as a section 8.2.


From #127 by @mkovatsc

@aaronpk
Copy link
Member Author

aaronpk commented Nov 16, 2017

Unclear how this should work and the text suddenly uses the term "clients". How should a subscriber learn about this? It discovers once on the publisher and then only communicates with the hub.

I see how this is confusing, so I've made some updates to the text. The new text is below:

  • The previous topic URL should send a redirect to the new topic URL. This will provide a seamless transition for any HTTP client that did not use WebSub but instead was polling the topic URL.
  • When existing WebSub subscriptions expire, subscribers will attempt to renew the subscription. The first step of renewing a subscription is to fetch the topic URL, which means the subscriber will encounter the redirect and end up at the new topic URL.
  • At the new topic URL, the subscriber will see the new rel=self URL and the new hub, and will subscribe to the new topic URL at the new hub.

Does this clear things up? The idea is the subscriber gets websub notifications for the duration of the lease, and when the lease is up, the subscriber will have to go fetch the topic URL again anyway, so at that point it can be redirected to the new location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant