Re: [Webpush] Message expiration (TTL) and Negative Acknowledgements

Benjamin Bangert <bbangert@mozilla.com> Fri, 16 October 2015 21:20 UTC

Return-Path: <bbangert@mozilla.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 E6C241B3401 for <webpush@ietfa.amsl.com>; Fri, 16 Oct 2015 14:20:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level:
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 WR31TEr0479w for <webpush@ietfa.amsl.com>; Fri, 16 Oct 2015 14:20:31 -0700 (PDT)
Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) (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 60A131B33FF for <webpush@ietf.org>; Fri, 16 Oct 2015 14:20:31 -0700 (PDT)
Received: by wijp11 with SMTP id p11so27335967wij.0 for <webpush@ietf.org>; Fri, 16 Oct 2015 14:20:29 -0700 (PDT)
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:content-type; bh=s0w+qVmLA6luhdyflMq4BIXViEcZ6RjEKNEDK60t4v4=; b=Whg7599eahSbZe9tX7qaYJ1a/PbP0QSWyjdOz7RA3Jz9UR3euCJbpR9yzGxpORkKe0 Elo0KhLRouAAKec2RJc81WBMCyS1GnjKPVTx+bzibnMdrJ5rboeDsdNUC5vuxgP2KV7E piS15BVLiSPmTcJr8ExSehWKLmvzqoTvE7SiM8A/9PhRKrwRgBGJUxEbe0UC4CGLUHLc C6GHqloCbYnDtddBF1VO+oJlFdJG1GFQiwQS2nVtfbsbvu6So8C1ddgUM2IgDZy14qyu euk6ID/Nx3HEnc8zwtmfbQqDbu1LZRUPZkbrL2tHYpojBm1Rg+xzYigaXXanvzJMinej P3Lw==
X-Gm-Message-State: ALoCoQlFb7gHQYQUQvmlYboKd6A7lSBT2DIS/4kZVjtLgp4tOc853m9C4MEoMfs84DM00/EhJWfD
MIME-Version: 1.0
X-Received: by 10.180.208.100 with SMTP id md4mr7112592wic.41.1445030429793; Fri, 16 Oct 2015 14:20:29 -0700 (PDT)
Received: by 10.27.155.207 with HTTP; Fri, 16 Oct 2015 14:20:29 -0700 (PDT)
In-Reply-To: <CABkgnnVVBsto0pucik0-6F0h7v9FG_uWoPH0XL8snNG_M6Z7qA@mail.gmail.com>
References: <BY2PR0301MB0647111FCF5845E3AA0C244583300@BY2PR0301MB0647.namprd03.prod.outlook.com> <CABkgnnUs_S6aRpTi6H5+d4xpuU1+2G1OKmWCxzczk+DYDWZGSQ@mail.gmail.com> <BY2PR0301MB0647EAE2174E1103EF59A2A083300@BY2PR0301MB0647.namprd03.prod.outlook.com> <CABkgnnUOcuK6p2C5WDaS==nwcYMfnpu1jXKj8oo31css7CFJNg@mail.gmail.com> <561EC47C.4090803@mozilla.com> <CABkgnnUHF1Z0expqJmggyYxnJm-EUU5x97JUo7=NhjhRDUVWvA@mail.gmail.com> <561ED106.8030806@mozilla.com> <CABp8EuLoOx_Vda_A+6bcs27q3erRR0+eHWC0DS_JB3fzgoniow@mail.gmail.com> <CABkgnnVVBsto0pucik0-6F0h7v9FG_uWoPH0XL8snNG_M6Z7qA@mail.gmail.com>
Date: Fri, 16 Oct 2015 14:20:29 -0700
Message-ID: <CABp8EuJ7MHO3jtscebCEzob2SfAsQ3LhdMt35WK=WTOYL8aS=g@mail.gmail.com>
From: Benjamin Bangert <bbangert@mozilla.com>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: multipart/alternative; boundary="001a11c38e267544e505223f5dc4"
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/gABSfkAaweJjBtCvTJE2FPzAy5k>
Cc: jr conlin <jconlin@mozilla.com>, "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Message expiration (TTL) and Negative 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, 16 Oct 2015 21:20:36 -0000

I'd prefer to not have to send NACK's in the event that the Push Service
has to clear them out for a user that stored too many. But that's possibly
not an option?

For the NACK's, speaking of server constraints, how many receipts is a Push
Service expected to buffer for an App-Server? If an App-Server sends 500k
notifications in, and happens to not be connected to the receipt server at
the time.... how many of those is the Push Service supposed to hold onto
until the app-server starts pulling them?

If the stream of NACK's is several magnitudes higher than an App-Server can
process them, at what point can a Push Service start dropping NACK's on the
floor?

On Thu, Oct 15, 2015 at 10:10 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 15 October 2015 at 09:07, Benjamin Bangert <bbangert@mozilla.com>
> wrote:
> > What steps are being taken with NACK's to ensure an app-server doesn't do
> > something like this? Is there going to be some status code or something
> to
> > indicate that these messages shouldn't be retried for some period of
> time?
> >
> > Or is it going to be up to a Push Service to try and detect these loops,
> and
> > when they occur, the Push Service is just going to have to fully expire
> all
> > the clients subscriptions to stop the loop?
>
>
> What steps do you think are appropriate.  I'd have to think some more
> on it, but I think that the only reasonable option is to have the push
> service do something.  We could recommend the use of Retry-After on
> nacks.
>
> Other than that, I guess that this is something the push service needs
> to handle.
>