Setting Up PubSubHubbub

From Dreamwidth Notes
Revision as of 23:06, 2 September 2009 by Foxfirefey (Talk | contribs)

Jump to: navigation, search
oo o o o o o braindump, please fix o o o o o o oo

Setting up PubSubHubbub can be done pretty easily. There are two sides, Subscribing and Publishing.

Publishing

First, you have to pick a hub and add it to your etc/config-private.pl:

   @HUBBUB_HUBS = ( "http://pubsubhubbub.appspot.com/" );

Now, all of your RSS/Atom feeds will automatically include this hub link. Once that's done, you have to run the worker ping-hubbub to actually send the pings. You can use etc/workers.conf and bin/worker-manager or your drug of choice to actually do this.

With those two steps done, publishing works. You will let the world know every time someone on your site updates.

Subscribing

This is a far more complex piece. There's a lot more moving parts with the subscription infrastructure. Notably, you have to setup three separate workers.

   subscribe-hubbub
   schedule-synsuck
   synsuck

Yes; you have to use the workerized synsuck interface. This is so that we're able to quickly schedule feed pulls. Do note that you must make sure your syndicated feed queue is small. If you have a lot of feeds that need updating and the queue is perpetually hours behind, subscribing via hubbub won't work so well!