Re: PP8: Asynchronous change notification for HTTP-based resources

Peter Saint-Andre <stpeter@stpeter.im> Mon, 21 January 2008 15:59 UTC

Return-path: <discuss-bounces@apps.ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1JGz3L-00089q-GH; Mon, 21 Jan 2008 10:59:15 -0500
Received: from discuss by megatron.ietf.org with local (Exim 4.43) id 1JGz3K-00089l-Bg for discuss-confirm+ok@megatron.ietf.org; Mon, 21 Jan 2008 10:59:14 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JGz3K-00089d-1e for discuss@apps.ietf.org; Mon, 21 Jan 2008 10:59:14 -0500
Received: from dizzyd.com ([207.210.219.225]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JGz3J-0001o0-EJ for discuss@apps.ietf.org; Mon, 21 Jan 2008 10:59:14 -0500
Received: from wrk225.corp.jabber.com (dencfw1.jabber.com [207.182.164.5]) (Authenticated sender: stpeter) by dizzyd.com (Postfix) with ESMTP id ED86940498; Mon, 21 Jan 2008 08:59:07 -0700 (MST)
Message-ID: <4794C13E.902@stpeter.im>
Date: Mon, 21 Jan 2008 08:58:54 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: Simon Leinen <simon.leinen@switch.ch>
Subject: Re: PP8: Asynchronous change notification for HTTP-based resources
References: <C84985D1-E485-4C6B-997D-9D7DB7286F95@osafoundation.org> <aaabn0gxgn.fsf@hadron.switch.ch>
In-Reply-To: <aaabn0gxgn.fsf@hadron.switch.ch>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="------------ms070702080000020108050300"
X-Spam-Score: -0.0 (/)
X-Scan-Signature: ccfb4541e989aa743998098cd315d0fd
Cc: Rohan Mahy <rohan@ekabal.com>, Apps Discuss <discuss@apps.ietf.org>
X-BeenThere: discuss@apps.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: general discussion of application-layer protocols <discuss.apps.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=unsubscribe>
List-Post: <mailto:discuss@apps.ietf.org>
List-Help: <mailto:discuss-request@apps.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=subscribe>
Errors-To: discuss-bounces@apps.ietf.org

Simon Leinen wrote:
>> Asynchronous change notification for HTTP-based resources
>> Rohan Mahy
> [...]
>> Current practices in change notification involve polling individual
>> HTTP resources, or polling some kind of HTTP "catalog" resource to
>> see what resources have changed. Both of these methods inherently
>> suck.  The "catalog" approach at least substantially reduces the
>> number of resources that need to be polled, but the amount of time
>> to wait between polls is always one-sided compromise and rarely
>> optimal for response time, network usage, and battery life.
> 
> FYI, there are a few interesting techniques to make server-to-client
> notifications over HTTP more efficient.  The buzzword for this is
> "Comet", and the Wikipedia article has good descriptions on some of
> these techniques, e.g. "long polling":
> 
> http://en.wikipedia.org/wiki/Comet_(programming)

In the XMPP community we have developed a technology called BOSH, which 
has some similarities to the Comet approach. BOSH was originally 
developed as a method for XMPP servers to offer an HTTP transport for 
XMPP traffic instead of the TCP transport defined in RFC 3920, but we 
have generalized it so that it is no longer specific to XMPP:

http://www.xmpp.org/extensions/xep-0124.html

We've talked about contributing this to the Internet Standards Process 
but haven't gotten around to it yet...

Peter

-- 
Peter Saint-Andre
https://stpeter.im/