Re: [pubsubhubbub] hub renewal best practice?

504 views
Skip to first unread message

Julien Genestoux

unread,
Feb 12, 2013, 3:15:18 AM2/12/13
to pubsub...@googlegroups.com
David,

As of 0.3, the best practice is to not rely on the hub to renew susbcriptions pro-actively. 
Some hubs (like Superfeedr) will just send confirmation again when the renewal date approaches... and some other (like the Google Hub) 
will rely only on the subscriber's renewal.

For 0.4 we took the same approach: subscriptions belong to subscribers, so they should make sure they're in order... It is relatively easy for
hubs to keep track of expiration and poke the subscribers too, but it's also quite costly for "dead" feeds to which someone may stay subscribed.

At Superfeedr, we're thinking about including a X-... header to notifications as a way indicate when a subscription will expire. This will be useful for subscribers to renew their subscriptions, while still "garbage collect" dead feeds which will never trigger any notification. For our paying customers, we also have an option to be notified on broken feeds, and have a policy to never explicitly expire subscriptions... 


I hope this helps!

--
Julien Genestoux


On Tue, Feb 12, 2013 at 12:12 AM, DCreemer <dcre...@gmail.com> wrote:
Hi-

I currently have several 10's of thousands of subscriptions active on pubsubhubbub.appspot.com, superfeedr, wordpress, and other hubs. Starting on Feb 6, I noticed that most of my subscriptions from pubsubhubbub.appspot.com stopped posting updates (other hubs continue just fine). Using the pubsubhubbub.appspot.com web ui, I noticed that many of the feeds I spot checked have an expiration time in the past (i.e. are expired). I see through recent messages on the group that the status of hub.lease_seconds is changing, and that it may not have been supported on the Google hub anyway. My endpoints currently see and correctly handle hub-initiated lease renewal requests.

What is the current suggested best-practice for renewal (on both 0.3 and 0.4 spec hubs)? Should I always initiate re-subscriptions?

Thanks,
-- David

--
 
---
You received this message because you are subscribed to the Google Groups "Pubsubhubbub" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pubsubhubbub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roman

unread,
Feb 12, 2013, 4:14:25 AM2/12/13
to pubsub...@googlegroups.com
+1 to everything Julien wrote. Subscribers shouldn't rely on the hub doing automatic renewals.

I should also add that we are rolling out a new version of pubsubhubbub.appspot.com. It has quite a few bug fixes including correct handling of subscription expiration. That's why you may see many of your subscriptions suddenly expiring.

Roman.

Percy Baker

unread,
Feb 12, 2013, 4:30:35 AM2/12/13
to pubsub...@googlegroups.com
remove
Percy Baker

DCreemer

unread,
Feb 12, 2013, 12:30:54 PM2/12/13
to pubsub...@googlegroups.com
Thanks Julian & Roman --

I appreciate both the help and the services.

DCreemer

unread,
Feb 12, 2013, 12:31:31 PM2/12/13
to pubsub...@googlegroups.com
arg! -- "Julien" -- sorry!.

Julien Genestoux

unread,
Feb 12, 2013, 12:32:15 PM2/12/13
to pubsub...@googlegroups.com
No prob :)

Julien Genestoux

unread,
Feb 15, 2013, 7:04:11 PM2/15/13
to pubsub...@googlegroups.com
Don't mixup the protocol (PubSubHubbub) and the implementations. 
There are bugs in pretty much implementations I guess. 

And no I don't think there is a board to tell you when subscriptions are expiring... that would just be a ton of small messages, not so usefule anway!

Julien


On Fri, Feb 15, 2013 at 9:09 PM, Poluxus <lafeuill...@gmail.com> wrote:
Is there a way to know if there are common problems/bugs associated with the current version of pubsubhubbub? Additionally, is there a notification system or board announcing upcomming releases to prevent "suddenly expiring"?

Roman

unread,
Feb 18, 2013, 7:59:31 AM2/18/13
to pubsub...@googlegroups.com
On Fri, Feb 15, 2013 at 9:09 PM, Poluxus <lafeuill...@gmail.com> wrote:
Is there a way to know if there are common problems/bugs associated with the current version of pubsubhubbub?

Not at the moment, unfortunately.

Additionally, is there a notification system or board announcing upcomming releases to prevent "suddenly expiring"?

pubsub...@googlegroups.com is de facto being used for discussions around the PubSubHubbub protocol *and* the Google Hub. This has been so for historical reasons.

I've added two TODOs for myself:
1. Create a separate mailing list for Google hub announcements and discussions.
2. Give a heads up on that mailing list when we are making big changes in the Google hub (several are incoming).

I'm going to address both of these action items shortly.

Roman.

On Tuesday, February 12, 2013 4:14:25 AM UTC-5, Roman Perepelitsa wrote:
Message has been deleted

Poluxus

unread,
Feb 18, 2013, 11:56:48 AM2/18/13
to pubsub...@googlegroups.com
Thanks
I'll try to come here more often

Roman

unread,
Mar 21, 2013, 6:15:39 AM3/21/13
to pubsub...@googlegroups.com
Yes. If hub.lease_seconds is not specified, the subscription expires in 10 days. Otherwise it expires in min(hub.lease_seconds, 10 days).

Roman.

On Thu, Mar 21, 2013 at 11:07 AM, Mic Vit <mic...@gmail.com> wrote:
Roman,
 Is  "hub.lease_seconds" supported in pubsubhubbub.appspot.com now ?

вторник, 12 февраля 2013 г., 13:14:25 UTC+4 пользователь Roman Perepelitsa написал:
Reply all
Reply to author
Forward
0 new messages