Re: [Webpush] 202 (Accepted) and simplifying acknowledgements

Martin Thomson <martin.thomson@gmail.com> Fri, 19 February 2016 23:53 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F20461B36AF for <webpush@ietfa.amsl.com>; Fri, 19 Feb 2016 15:53:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OtqENXwlFIpR for <webpush@ietfa.amsl.com>; Fri, 19 Feb 2016 15:53:26 -0800 (PST)
Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C0841B36AB for <webpush@ietf.org>; Fri, 19 Feb 2016 15:53:26 -0800 (PST)
Received: by mail-ig0-x22a.google.com with SMTP id 5so47507383igt.0 for <webpush@ietf.org>; Fri, 19 Feb 2016 15:53:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ppduj6ifOo1aV5d7XvsolZ828gmT0/er2ub9nPxbQ6k=; b=tCvSWhWT49hBn5YDi6tAtX8MJtI+T2Pb3KvKBgoI+/uvlG/jvWUaRp70Ku25dFbPR0 NbCosvbUBPWQ+g3It8Q40LxkxwCGXCPvYJwlGkwtmvzSE3qESgJ51fhdHgEGH7poi3Tz OoS8li4Vwq020pXmeJ/EeuMhFhaEmmrCCk2Ec7X8TPbxNy+YS3lnFWVdqMftUBUKTRcf qFsm7AoPRQeJP5N+cVx9RNEHeyuShIjvekbZw15Z8hnXWubzser75vQLFMsYG5WYWJRI n/QPc9rHOCkaKVjeMD3emL4eSRcE89EC/ELmwJRsLR8nWEY5wbXubMhuclhTbI1U8d6W M+VQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ppduj6ifOo1aV5d7XvsolZ828gmT0/er2ub9nPxbQ6k=; b=F3JbBQV1POU3+LP4Zb3U9HgjU3zrHzDfZaEylCV7v8iyjhXS5cqfCANn0DbjN+9LCQ VUhwlqc8sETRgp/eKZjABz9bL0ZSWtLs8hmiBbD1LvQ8HxCHQ56qbKse1nsEt/gRkieg VcynH9uAlUZ2PyKTAsTUTcXaeOSbFz3PxAmoPaqZg1HVUq5Cf31jOhUZSYkSVElLz9AL Hh9GmOLb06dWRirOLbHQwyg9CZTP6qTRHmo52JuuQ9jCucDeCjlQTQJfmhxaJqcLSajZ SK+r4FQZG7tGw9iiifry2E/w4QZBqd0E0IuKzd9J30ur58mCHhg6F37J+p/lODh7YfUC i7QQ==
X-Gm-Message-State: AG10YOSw3asuZvKcYsFL0+BgqzxgoTRfFBsSMvv0O0SZwA+w3XR4aZ61tsPFlSn4wYaQSDC92bBIIVP81rLOOQ==
MIME-Version: 1.0
X-Received: by 10.50.6.104 with SMTP id z8mr495988igz.58.1455926005992; Fri, 19 Feb 2016 15:53:25 -0800 (PST)
Received: by 10.36.53.79 with HTTP; Fri, 19 Feb 2016 15:53:25 -0800 (PST)
In-Reply-To: <BY2PR0301MB06475638E9DE5D87782E71C783A00@BY2PR0301MB0647.namprd03.prod.outlook.com>
References: <BY2PR0301MB06475638E9DE5D87782E71C783A00@BY2PR0301MB0647.namprd03.prod.outlook.com>
Date: Fri, 19 Feb 2016 16:53:25 -0700
Message-ID: <CABkgnnU_oxOJX3TMY2EpfZS7NSwfhteWA2Tzh=L_gw1RNFWoLQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Brian Raymor <Brian.Raymor@microsoft.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/Ty5a7IoXop1gPw6Ekz1tXE9U7a4>
Cc: "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] 202 (Accepted) and simplifying acknowledgements
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol <webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>, <mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>, <mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Feb 2016 23:53:28 -0000

On 19 February 2016 at 13:26, Brian Raymor <Brian.Raymor@microsoft.com> wrote:
> 4. The PS returns a 202 (Accepted) on success for the message delivery request from the AS. It also includes a Location and :push:receipt as the "status monitor" suggested for a 202.


I think that:

a) this change in design is generally good, but I have one question
and maybe a suggestion
b) we should use 201 still, since a resource is created (even if it is
purely ephemeral, as it is in the case of TTL: 0)


The question is: what would the :receipt link identify?  This is a
resource that the application server would monitor for receipts.  But
that has the same problem we had with subscriptions that led to the
creation of subscription sets, namely that the application server has
to make a request for every push message it wants to track.

Is that your intention?  Because if it is, that's a lot of GET
requests, which could lead to scaling issues.  I have a suggestion.

If this were to act like a subscription *set* rather than a
subscription (see Costin's question), I think that this would be
better.  The only question then is how an application server causes
its receipts to be correlated.  The obvious answer is to create the
subscription set in an initial request and use the inclusion of the
link relation in the push message request as an indication that the
application server wants to link receipts to an existing subscription.

A less good, but probably OK possibility is to hook into the voluntary
identification and have application servers get a subscription set
based on their offered identity.