Search the web
Sign In
New User? Sign Up
radio-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Jabber-powered notification: first steps   Message List  
Reply | Forward Message #5560 of 8443 |
Hello

I read Dave's Publish-subscribe walkthrough in the bath just now, and
thought I'd put down a few initial thoughts to get the ball rolling.

Please don't hesitate to shoot me down - beneath this thin-skinned
and soft exterior lies an equally soft centre that is, however, used
to being shot at :-)

First, a few premises:

1) the 'proxy' mechanism that is described in the "The connection to
IM" section is a nice one to go for at this stage, as it requires
less change than would otherwise be necessary in a 'full-blown'
conversion (which wouldn't be appropriate)

2) the main gain from taking a direction like this is that the firewall/
NAT problems fall away. Dave mentioned something about a(n up to) 30
seconds delay with current mechanisms, but I'm not sure where this
delay lies yet (I've only looked briefly at Radio since yesterday). Is
this something to solve here too?

3) for want of anything better, it may be worthwhile to go roughly in
the direction as described in the Jabber pubsub proposal ('JEP' -
Jabber Enhancement Proposal) recently submitted [1] (There's also some
slightly related info here [2] if you're interested).

Perhaps it would be appropriate to start with what the desktop sends
and receives, in Jabber-speak, to request the notification (as described
in step 2 of "The connection to the IM") and what the desktop receives
when a notification comes in (as described in step 4). (I'm guessing,
as a newbie to Radio, that we could use Jabber.root to facilitate these
conversations?)

The SEND and RECV are from the desktop's perspective:

"I just subscribed to this resource (...please notify me of changes)":

SEND: <iq type='set' to='radio-pubsub-component' id='nr1'
from='desktop'>
<query xmlns='jabber:iq:pubsub'>
<subscribe
to='xml-rpc@...:80/RPC2/xmlStorageSystem.rssPleaseNotify'\
>
<ns>(the URL of the subscribed file)</ns>
<ns>(possibly another...)</ns>
</subscribe>
</query>
</iq>


"Ok, your notification request was successfully received and proxied"

RECV: <iq type='result' from='radio-pubsub-component' id='nr1'
to='desktop'>
<query xmlns='jabber:iq:pubsub'>
<subscribe
to='xml-rpc@...:80/RPC2/xmlStorageSystem.rssPleaseNotify'\
> [note-1]
<ns>(the URL of the subscribed file)</ns>
<ns>(possibly another...)</ns> [note-2]
</subscribe>
</query>
</iq>

[...time passes...]

"Here's a notification that something has changed"

RECV: <iq type='set' from='radio-pubsub-component' id='pub1'
to='desktop'>
<query xmlns='jabber:iq:pubsub'>
<publish
from='xml-rpc@...:80/RPC2/xmlStorageSystem.rssPleaseNotif\
y' ns='(the url of the subscribed file)'/>
[note-3]
</query>
</iq>

Notes on these packets:

[note1] According to the docu [3], the rssPleaseNotify call is
deprecated. I guess we will be using the requestNotification
call soon (I see it was added today, perhaps to remove the
nominal association with RSS?)

[note2] According to the "How subscribing flows" section of Dave's
document, you can send more than one URL, as the 5th parm
is a list. Does this happen in practice?

[note3] There's deliberately no <publish/> payload, as all this is
intended to be is a poke, and the salient info is in the URL,
which we're carrying around in the <ns> tag and attribute.

One observation: whereas I mentioned that we could follow the direction
of the Jabber pubsub JEP, the pubsub 'component' mentioned in that JEP
is a pure pubsub mechanism, that records subscription requests and
receives and appropriately forwards published data. Here, however, we're
talking about something slightly different, in that incoming subscribe
requests are recorded but also forwarded, proxied, as SOAP or XML-RPC
based notification requests, and published data comes in as SOAP or
XML-RPC based notifications, and are in turn passed on in Jabber packets.

I'm sorry if this is long or "stating the bleedin' obvious", but I
thought it might be useful to marshal thoughts. Perhaps the next steps
are to think about (a) how these can be managed on the desktop (with
Jabber.root - Jeremy?) and (b) what happens at the next level 'up',
i.e. at the Jabber component level.

Kind regards
DJ

[1] http://www.jabber.org/jeps/jep-0024.html
[2] http://www.pipetree.com/testwiki/PeerkatAndPubsub
[3] http://www.soapware.org/xmlStorageSystem#rssPleaseNotify



Mon Apr 1, 2002 9:13 pm

dj_qmacro
Offline Offline
Send Email Send Email

Forward
Message #5560 of 8443 |
Expand Messages Author Sort by Date

Hello I read Dave's Publish-subscribe walkthrough in the bath just now, and thought I'd put down a few initial thoughts to get the ball rolling. Please don't...
DJ Adams
dj_qmacro
Offline Send Email
Apr 1, 2002
9:13 pm

DJ, thanks for getting the ball rolling. My next job is to find a few hours to get familiar with Jabber.root, and get it talking to your server. Then I'll...
Dave Winer
dwiner
Offline Send Email
Apr 1, 2002
10:38 pm

Hi guys Is there any way Frontier.tools.windowTypes.commands.openUrl could be allowed to open URLs that don't end with one of the preset extensions "xml", ...
David Davies
davidalandavies
Offline Send Email
Apr 2, 2002
12:00 am

... your ... request ... Yup. We shouldn't try to build any 'intelligence' into this part, just get it to do as it's told. ... request. The way I understand...
dj_qmacro
Offline Send Email
Apr 2, 2002
8:57 am

... OK. I'm looking at how to implement this, and it's straightforward. Some questions, to make sure I understand what's going on. 1. There are in any pub-sub...
Jeremy Bowers
jerfb
Offline Send Email
Apr 1, 2002
11:04 pm

... Great stuff! ... is it ... subscriber ... request. Correct. This is one of the great advantages of a pubsub system - the publisher can get on with...
dj_qmacro
Offline Send Email
Apr 2, 2002
9:10 am

Jeremy, just making sure that you've read the walkthrough I put up this morning. http://backend.userland.com/publishSubscribeWalkthrough Esp the last part....
Dave Winer
dwiner
Offline Send Email
Apr 2, 2002
12:03 am

I hope I've dug enough to find the core of the pattern. Summary: There are really two tasks, here. One is to design a distributed change notification system...
Garth Kidd
gtk23
Offline Send Email
Apr 2, 2002
3:49 am

I'm not interested in the latter at this time. Further, I don't think this clarifies the question, sorry -- it just muddies it. What I want to do is pretty...
Dave Winer
dwiner
Offline Send Email
Apr 2, 2002
12:18 pm

Dave, WHERE is this spec going to be developed...? On this list, on Instant Outlines, on the phone...? On blogs, DGs and printed press...? I know.. all of...
jt
jt@...
Send Email
Apr 4, 2002
5:17 pm

Dave, I forgot... If I might add one suggestion it would be that this might be a good time to fork the process. I see a great value in getting something...
jt
jt@...
Send Email
Apr 4, 2002
5:39 pm

... subscribing to a source. So in my limited understanding, this seems like one source:one URL in the notification request. In the practice that you refer to...
Dave Winer
dwiner
Offline Send Email
Apr 2, 2002
12:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help