Re: [core] Pub/Sub update to use the core multipart content format

Michael Koster <michaeljohnkoster@gmail.com> Sun, 03 March 2019 12:54 UTC

Return-Path: <michaeljohnkoster@gmail.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3030C12D4EC for <core@ietfa.amsl.com>; Sun, 3 Mar 2019 04:54:05 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 6-NJSazgcXXQ for <core@ietfa.amsl.com>; Sun, 3 Mar 2019 04:54:02 -0800 (PST)
Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 A659D1295D8 for <core@ietf.org>; Sun, 3 Mar 2019 04:54:02 -0800 (PST)
Received: by mail-pl1-x62d.google.com with SMTP id c17so1189772plz.13 for <core@ietf.org>; Sun, 03 Mar 2019 04:54:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/mfyR3+xGlD/hXR2C/cevEaYtuXy+F1OnAsdZChghcg=; b=YpsR8dpE/aFw5W2P/k/hQek3gZDn277CPsjWLFWictPhdqbWCA2Emwh5RwHDUY5IUb Z419uXtvYB5jFnBvbZePxcQ+ynbRmz2elfs6zVixi7VUAb2MPEIcZ1rFXsAehbv5C3uE B20MKzN0Viqf2ALJD4cpg52sG95xFpTIT+rFGDzEdBsXAUbYgMsakqL24o0cqcLw2b+3 iecrJQkPqY0NjwI/A7Kb9+2xQ9YzbLWN8zs7X7LiWQ9LRVjsFqrNtdSzoARUv/kKSKu2 ONLOA/ifmwRk1DNDsnvLhg9OecPKL5K0W1HxGqUxjrXgBbgVfCHmCSPbfuvYnndD9mfR qiQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/mfyR3+xGlD/hXR2C/cevEaYtuXy+F1OnAsdZChghcg=; b=CtGcJ9W3JTC9YKwAx6k9NrrTmXGRBq2k2axHoWMu6e3ZkcHWnM2SWeEV9n7eYXGJjl l5Kf5lshvx7CXAecL6DC7FJfFJGrrl2AL2FICVjo8HalZvFaGthMT4UuSpin/fRFieYM Thvq7KlcWKykAS1fpX8lK/MbcozCSwTB9FNzQFcNDYfDkxncvlkpX1Z9Y3u+IYGiH0Yk 6C+dKd/FKb5EbMoOsQDXU6RDm5vu7wgCWrlD1lroFJbah1ugqsdcVMbYnEfQikz3TTT7 dYGNg/uVTTThTiy/VWchNLIqDU4JAf1L2mkhv+mfS8CAD94plkcwF4CY7JtuW7RI+OXb GmgQ==
X-Gm-Message-State: APjAAAW32sNHy65oBxhVvkiXCezu5SnPtLAFlit6vPwqJywao9cwP0jY rRsKHSRphMQQ5ghZrET8f0c=
X-Google-Smtp-Source: APXvYqwegO70YJ1e0CvS3p6okIt2mSYrFHPpgXW13jDv2MXObFg3K45g5qeAJHghhvZlH4zNmhM9Vg==
X-Received: by 2002:a17:902:34a:: with SMTP id 68mr14622064pld.327.1551617641492; Sun, 03 Mar 2019 04:54:01 -0800 (PST)
Received: from [172.16.0.3] (c-71-202-145-92.hsd1.ca.comcast.net. [71.202.145.92]) by smtp.gmail.com with ESMTPSA id g12sm4400318pgr.76.2019.03.03.04.54.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Mar 2019 04:54:00 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Michael Koster <michaeljohnkoster@gmail.com>
In-Reply-To: <006101d4d173$036f3150$0a4d93f0$@augustcellars.com>
Date: Sun, 03 Mar 2019 04:53:59 -0800
Cc: Ari Keränen <ari.keranen@ericsson.com>, Jaime Jiménez <jaimejim@gmail.com>, core@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <27BF3A10-B9D8-435D-BA4E-64C244E516B2@gmail.com>
References: <BAB1B7EB-825F-4A4E-B33F-9E46A8952752@gmail.com> <904CFCA3-F10A-4018-88AB-E859743B3E70@gmail.com> <006101d4d173$036f3150$0a4d93f0$@augustcellars.com>
To: Jim Schaad <ietf@augustcellars.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/MqOJbQE0MOaNczYTsE3TGCDgdY0>
Subject: Re: [core] Pub/Sub update to use the core multipart content format
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Mar 2019 12:54:05 -0000

Hi Jim,

I am proposing to use the multipart response to indicate that there aren't data to be returned on a subscribe operation.

We were proposing a new response code, but there was a lot of pushback on doing this, so we want to try the multipart format with an empty array (cbor x08).

It does require that a pub/sub client learn a little cbor and be able to unpack the intended payload from the embedded string.

Would the new response code be a better option after all? It it easier to teach clients about a new 2.xx response than a new format?

Best regards,

MIchael

> On Mar 2, 2019, at 7:41 PM, Jim Schaad <ietf@augustcellars.com> wrote:
> 
> Michael,
> 
> When I was suggesting using multipart I was thinking more in term of
> publishing rather than retrieval.  It would allow for multiple formats to be
> sent to the pub/sub server which the server would not need to think about
> doing format conversion on but could still return only a single format.
> 
> I don't think that one wants to do a multipart retrieval as a general rule
> unless the content really a multipart thing.  I guess that the server would
> need to be told which way to treat things, but that seems to be a reasonable
> query parameter for topic creation.
> 
> Jim
> 
> 
>> -----Original Message-----
>> From: core <core-bounces@ietf.org> On Behalf Of Michael Koster
>> Sent: Saturday, March 2, 2019 3:24 PM
>> To: Ari Keränen <ari.keranen@ericsson.com>; Jaime Jiménez
>> <jaimejim@gmail.com>
>> Cc: core@ietf.org WG <core@ietf.org>
>> Subject: Re: [core] Pub/Sub update to use the core multipart content
> format
>> 
>> OK, I read the multipart draft (expired?) For the no data case we will
> just
>> send an empty multipart payload (cbor x80).
>> 
>> It seems like every implementation of pub/sub will be required to support
>> only link-format and multipart. The subtype support will be on a topic
> basis
>> and maybe a broker should have some way to list a set of supported
>> subtopics that it can handle. To remind people, a coap pub/sub broker
>> doesn't have any notion of "resource state" other than a stored
>> representation.
>> 
>> Best regards,
>> 
>> Michael
>> 
>>> On Mar 2, 2019, at 5:27 AM, Michael Koster
>> <michaeljohnkoster@gmail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> I am editing the pub/sub draft today and thinking about the multipart
>> content format as a way to provide a subscribe or retrieve response for
> the
>> no data case.
>>> 
>>> It seems to require that the pub/sub client always support the multipart
>> format, with no content being one of the format options signaled by
>> something like "maybe".
>>> 
>>> Does this seem right to you also? Do we need to invent a new empty
>> format code instead of a response code?
>>> 
>>> Best regards,
>>> 
>>> Michael
>>> 
>>> 
>>> 
>>> 
>> 
>> _______________________________________________
>> core mailing list
>> core@ietf.org
>> https://www.ietf.org/mailman/listinfo/core
>