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

subscriptions: fully functioning via Pull, and Push just an additional optimization #7

Open
elf-pavlik opened this issue May 26, 2015 · 3 comments

Comments

@elf-pavlik
Copy link
Member

I would like to propose that all explicit subscriptions need to work with Pull and Push only acts as optimization. This way subscribing party can always get updates without need to implement notification endpoint, for public content subscribing party can also choose to stay anonymous and not announce subscribing to the party acting as publisher.

This would also allow @tantek and @evanp to test basic interoperability as soon as they both can publish compatible feeds/streams and subscribe to each other via pull, as I suggested in w3c-social/social-web#1

This doesn't include mentions like interaction, since mentioned party doesn't need to stay subscribed to all the parties acting as publisher of content which includes mentions.

@aaronpk
Copy link
Member

aaronpk commented May 26, 2015

I agree with this, since this is how we've grown organically with the indieweb development. It's only been recently that we've seen a bunch of people start to publish and consume PubSubHubbub to make everything more realtime. This also provides a natural progression so that the spec isn't as overwhelming to implement. You can start by publishing data, and separately, enable push for realtime delivery.

@aaronpk aaronpk changed the title subscriptions: fully functioning via Pull and Push just an additional optimization subscriptions: fully functioning via Pull, and Push just an additional optimization May 26, 2015
@akuckartz
Copy link
Contributor

👍

I like the incremental approach. And the Push aspect seems to be significally more difficult to specify.

@elf-pavlik
Copy link
Member Author

@aaronpk I just took a look at IRC log which you publish

I find in it's rels: pingback and webmention but no hub or something like Updates-Via (proposed in SoLiD). The last I suggested to implement with link relation instead of HTTP header solid/solid-spec#10 & solid/solid-spec#11 @melvincarvalho

In your IRC log I already find live updates subscription

// Streaming logs
  var pushstream = new PushStream({
    host: window.location.hostname,
    port: 443,
    useSSL: true,
    modes: "eventsource",
    urlPrefixEventsource: "/irc-streaming/sub",
    channelsByArgument: true,
    channelsArgument: "id"
  });

Maybe we could have single link relation for updates used to point to multiple endpoint: SSE (direct read-only), WebSockets (direct read-write), PubSubHubBub (indirect read-only) etc.

seeAlso: Social WG ACTION-60: Draw Follow vs. Subscribe with account having multiple feeds allowing subscription independently

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

No branches or pull requests

3 participants