Coder Social home page Coder Social logo

Comments (10)

evanp avatar evanp commented on April 28, 2024

Note that we keep the analogy to 0.3 discovery.

from pubsubhubbub.

 avatar commented on April 28, 2024

Yeah, I hesistated. We had trouble with one customer with this. He found that complex and wondered why not use a simple header with a Key: Value where the Value was the whole thing. It's the same for me, but I see how extracting the stuff may be a tiny bit more complex for non-http-spec aware people.

from pubsubhubbub.

ralphm avatar ralphm commented on April 28, 2024

As the discovery is done by the hub, the complexity here is on two parties: the hub implementer and the feed provider. The subscriber doesn't have to deal with this. I don't think the former is a problem at all, and the latter is a matter of good examples.

I support the idea of using the Link HTTP header instead of introducing new ones. It also frees this specification from talking about IRLs vs. URLs, various security aspects, etc.

Note that RFC 5988, which (re-)defines the Link HTTP header, also establishes the link-relations registry at IANA. This includes 'hub', and that in itself is a good reason to point to this RFC.

from pubsubhubbub.

ralphm avatar ralphm commented on April 28, 2024

Eh, oops, I'm not sure what I was thinking here. Of course the subscriber needs to implement this, but I don't really see this as a big issue. I can imagine auto-discovery libraries that take any link-relation and a URI and then perform different discovery steps as desired in a generic fashion. First trying HTTP Link headers, then optionally looking for embedded link elements in HTML or Atom. It could even try XRD Link Rel.

from pubsubhubbub.

 avatar commented on April 28, 2024

Raphlm,

I am sorry, but discovery is certainly not done by the hub, but by the subscriber (that's the whole point of PubSubHubbub being decentralized).
The subscriber does have to deal with this.

The flow is :

  • The subscriber find a resource he wants to get.
  • In the resource (using for now, but in the HTTP headers in the future), the subscriber finds the hub
  • The susbcriber sends to the hub the subscription request to the hub (along with the callback url).
    ...

But I'm ok with the use of Link headers.

from pubsubhubbub.

 avatar commented on April 28, 2024

Bam. Cross comments :)

from pubsubhubbub.

julien51 avatar julien51 commented on April 28, 2024

Fixed in #7ac2e59 and closing now :)

from pubsubhubbub.

evanp avatar evanp commented on April 28, 2024

I'm looking here:

http://code.google.com/p/pubsubhubbub/wiki/ArbitraryContentTypes

Very interesting!

from pubsubhubbub.

evanp avatar evanp commented on April 28, 2024

rel=hub and rel=self are already defined in RFC 5988: http://tools.ietf.org/html/rfc5988

from pubsubhubbub.

ralphm avatar ralphm commented on April 28, 2024

Indeed, see above :-)

from pubsubhubbub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.