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

jr conlin <jconlin@mozilla.com> Wed, 14 October 2015 22:02 UTC

Return-Path: <jconlin@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 7A3AB1A896E for <webpush@ietfa.amsl.com>; Wed, 14 Oct 2015 15:02:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 I7nKc8Lv7GVH for <webpush@ietfa.amsl.com>; Wed, 14 Oct 2015 15:02:47 -0700 (PDT)
Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (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 F034C1A049A for <webpush@ietf.org>; Wed, 14 Oct 2015 15:02:44 -0700 (PDT)
Received: by pabrc13 with SMTP id rc13so65741146pab.0 for <webpush@ietf.org>; Wed, 14 Oct 2015 15:02:43 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=IOmtuR2B6/AiOeHn8/+UPDuTRJvd0FS7C6I0WFQguwE=; b=CLAdOyse9Vvka4QPsCfkYvOz2tYxpcedQGP2G+EKJlNYDIjL8Jiee2wmnD6yqZdoNi PFDC3a1WiB2FjzsA/DvwnwYn6AYGnCLbQZVTQE70zwuCgMWNDO43zQ1YWvIqtjJliRAu XaiAmZ9Wq79b6CbeVR/c4AqZqREYn7a7soC0U0f4rbweOQShtP7Mt5f4JfjWHK8o8PMg 0lHmAjmb+aUdILw22N0YD8EY6KFt2ewDh4fpbGN+TadRlSj6K8LtH/m3m78pha5wZlDB Jyk8tr6vcIanyTAGMoBBo8DYKgzMRgbxDHrZ9/MZ9enrpSduLuHggfsL/PBk2E1Y1Tq5 JPYA==
X-Gm-Message-State: ALoCoQkhXPtTH+hlgIZM0zTxpaGMSeKFzhIG91CBrPvdOvEctenaSS9b6AsF07ogb5ixJS/Nhcmc
X-Received: by 10.69.26.101 with SMTP id ix5mr5929265pbd.144.1444860163543; Wed, 14 Oct 2015 15:02:43 -0700 (PDT)
Received: from ?IPv6:2620:101:80fb:224:f03b:fcb1:9736:dcd6? ([2620:101:80fb:224:f03b:fcb1:9736:dcd6]) by smtp.gmail.com with ESMTPSA id qn5sm11512309pac.41.2015.10.14.15.02.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 15:02:42 -0700 (PDT)
To: Martin Thomson <martin.thomson@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>
From: jr conlin <jconlin@mozilla.com>
X-Enigmail-Draft-Status: N1110
Message-ID: <561ED106.8030806@mozilla.com>
Date: Wed, 14 Oct 2015 15:02:46 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Thunderbird/43.0a2
MIME-Version: 1.0
In-Reply-To: <CABkgnnUHF1Z0expqJmggyYxnJm-EUU5x97JUo7=NhjhRDUVWvA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/23dtbuVNhlZnizmXJnzpMFz6QlY>
Cc: "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: Wed, 14 Oct 2015 22:02:55 -0000

On 10/14/2015 2:37 PM, Martin Thomson wrote:
> On 14 October 2015 at 14:09, JR Conlin <jconlin@mozilla.com> wrote:
>> 429: This will allow the server to apply "back pressure" to the
>> application service in cases where there may be too many incoming
>> messages in a short period of time. This response would carry a
>> RETRY-AFTER response header indicating the number of seconds that should
>> elapse before the remote server should retry transmission of the message.
>
> How is that different from 503?

Traditionally (as if that's a thing for the web) 503 tends to be used by
intermediary services like load balancers to indicate that "something's
amiss with the box I normally talk to". Since it's a 500 class error, it
indicates an error state possibly from outside the server. 429 was
identified as part of https://tools.ietf.org/html/rfc6585 to be used
more as a rate limiter and carries with it the "Retry-After" response
header indicating how long the requester should wait before retry. It's
a 400 class error, which means it should come from the responding server.

Either would work, of course, but it may be that programmers can take
advantage of pre-existing handlers in libraries to do the back-off for
them, rather than have to code the response themselves.