Re: [dispatch] Proposal for Per Resource Events Protocol
worley@ariadne.com Tue, 08 August 2023 20:23 UTC
Return-Path: <worley@alum.mit.edu>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EDB53C15152F for <dispatch@ietfa.amsl.com>; Tue, 8 Aug 2023 13:23:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.692
X-Spam-Level:
X-Spam-Status: No, score=-1.692 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcastmailservice.net
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1c2Q0sQcy8oD for <dispatch@ietfa.amsl.com>; Tue, 8 Aug 2023 13:23:27 -0700 (PDT)
Received: from resqmta-c1p-024062.sys.comcast.net (resqmta-c1p-024062.sys.comcast.net [96.102.19.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E0A08C15152C for <dispatch@ietf.org>; Tue, 8 Aug 2023 13:23:26 -0700 (PDT)
Received: from resomta-c1p-023411.sys.comcast.net ([96.102.18.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resqmta-c1p-024062.sys.comcast.net with ESMTP id TLdYq0a2JKURvTTCnqsLYd; Tue, 08 Aug 2023 20:21:25 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20211018a; t=1691526085; bh=+mEOwqh5syJBJrkC78nMUjqy4Qu5d4cwgL7W9/CP84o=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID:Xfinity-Spam-Result; b=yETgj6HzMglA4AjLyjQMGfANSnZetlIsH4J5RCrTv4bmObMRDGkkhlGVsWKbQFBbV 1/KtBuRDEbio9qFqm872OSkozqLcrjjno5EG1MxLoh74O2p7saYPn3JPKrmShBbpPP GsevmxPgS1UlEA1jXvaJfbjSR51DEmNUSIDTswpy2+kqou6jxPsSMlsTh3Qf3u9YcI KKEY0v1ck+eEMqLUIwuujPOMr9EzT3PePw/t6GCJ3CZWkGhZhAQ3nWvIf3B5XzBDUs i3ECaIWXXGOg3pvQNcPRcpeqtuT7Bl8Po7OwenKfnlK+YVXKZo4wPy7aQonGAkblkT pED0T79ZD+MoA==
Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4a00:430::68ab]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-c1p-023411.sys.comcast.net with ESMTPA id TTCQq2XXOza5XTTCRq2tg4; Tue, 08 Aug 2023 20:21:03 +0000
X-Xfinity-VMeta: sc=49.00;st=legit
Received: from hobgoblin.ariadne.com (localhost [127.0.0.1]) by hobgoblin.ariadne.com (8.16.1/8.16.1) with ESMTPS id 378KL2V32118695 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 8 Aug 2023 16:21:02 -0400
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.16.1/8.16.1/Submit) id 378KL2MV2118639; Tue, 8 Aug 2023 16:21:02 -0400
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: Rahul Gupta <cxres=40protonmail.com@dmarc.ietf.org>
Cc: dispatch@ietf.org
In-Reply-To: <XtZDvT7rzZOaluCfsSU0Zi0wA6cu_bmORZds9PMYOdE8Z9MRq7ViNpQzgyaOsQkjPd5nOOEvtWHlkG9wv3n4rjXcTX9BKqRHtTCqTUB_nO4=@protonmail.com> (cxres=40protonmail.com@dmarc.ietf.org)
Sender: worley@ariadne.com
Date: Tue, 08 Aug 2023 16:21:02 -0400
Message-ID: <878ralz3o1.fsf@hobgoblin.ariadne.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/ya6cRY2bB23rpkxXZOe313My_0o>
Subject: Re: [dispatch] Proposal for Per Resource Events Protocol
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Aug 2023 20:23:31 -0000
Some comments: Rahul Gupta <cxres=40protonmail.com@dmarc.ietf.org> writes: > I would like to propose Per Resource Events > <https://cxres.github.io/per-resource-events/protocol> as a protocol > for standardization at IETF. Looking at that web page, I have to say I found it difficult to read. It provides endless detail, but doesn't provide a clear summary that the naive reader can read to grasp the big picture (and then fill in the details reading the rest of the text). Put something like your "How it works" at the top. Otherwise new readers will lose interest before learning enough to understand why the proposal is valuable. > How it works > > When using PREP, a user agent desiring notification simply sends a GET > request with an additional "Accept-Events" header. Why not use a new method rather than overloading GET? For instance SUBSCRIBE is already used in SIP with approximately the semantics you want. Using a separate method would ensure that caches, etc. could treat subscription requests specially; by default, they wouldn't cache them at all. > If the resource is capable of and allowed to send notifications, the > user agent receives these notifications as a multipart (RFC2046) > response on an open-ended HTTP stream (for a fixed period or until the > resource is deleted). To add detail, "as an open-ended multipart response on an open-ended HTTP stream". Interestingly, this ensures that the subscription is terminated if the subscriber fails, because the subscriber will no longer provide ACKs on the TCP connection. However, it looks like you don't specify what the notifications (the body parts of the multipart) will look like. That may be intended or even necessary for this specification, but it means that every implementation for an object has to design what its notifications will look like. As Mnot says, that's a negative: "Intermediaries can't understand application-specific semantics, so they can't add much value to them without making some big assumptions." > Mark Nottingham correctly points out on his blog > <https://www.mnot.net/blog/2022/02/20/websockets> that HTTP based > pub/sub protocols have not fulfilled their potential due to > connections limits in HTTP/1.1 and head-of-line blocking in > HTTP/2. OK, how does PREP avoid these problems? Given that is the first problem that Mnot lists about event subscriptions, it would seem that would be the key to getting PREP adopted. But my naive reading suggests that each active subscription occupies a single TCP connection. Dale
- [dispatch] Proposal for Per Resource Events Proto… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… worley
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- [dispatch] Fw: Re: Proposal for Per Resource Even… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… worley
- Re: [dispatch] Fw: Re: Proposal for Per Resource … Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… Tim Bray
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… worley
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… worley
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… worley
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… worley
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… Kévin Dunglas
- Re: [dispatch] Proposal for Per Resource Events P… Rahul Gupta
- Re: [dispatch] Proposal for Per Resource Events P… Michael Toomim
- Re: [dispatch] Proposal for Per Resource Events P… Kévin Dunglas