[core] Pub-Sub Issues/Discussions

Jim Schaad <ietf@augustcellars.com> Wed, 21 August 2019 22:33 UTC

Return-Path: <ietf@augustcellars.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 891D4120843; Wed, 21 Aug 2019 15:33:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 4QlnDInA74Dc; Wed, 21 Aug 2019 15:33:22 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5A89B120816; Wed, 21 Aug 2019 15:33:22 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 21 Aug 2019 15:33:15 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: draft-ietf-core-coap-pubsub@ietf.org
CC: core@ietf.org
Date: Wed, 21 Aug 2019 15:33:12 -0700
Message-ID: <02f001d55870$6c9938e0$45cbaaa0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdVYZPF9WJUtblCDQeytd3wDbkI2aw==
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/4XjVDdAxu1IsjzDC1NKnwefG8_A>
Subject: [core] Pub-Sub Issues/Discussions
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: Wed, 21 Aug 2019 22:33:29 -0000

So I found the interim call today very useful in terms of trying to get some
progress on how to implement a Pub-Sub server.  I am going to recap what I
heard and add some items that were not said but I think were implied from
the discussions for general review.

1.  Vocabulary and default values:
The set of items in proposal.txt is a reasonable starting place but is going
to get changed in many ways going forward, not the least in the URI being
used.

Content Type:  If not provided by the creator defaults to the first content
type published to the topic.  One implication of this is that all items
published to the server are required to have a content type.

Lifetime:  There are two separate lifetime values, one for the topic and one
for the data.  The default for the topic is infinite, but a server could be
configured to have a lower value to prevent building up crud.  The default
for data is infinite and should not be configured by the server only the
topic creator.  A topic expiring will automatically garbage collect the data
object as well.

Vocabulary will need to provide some behavior questions on read/write and
filter:   I expect there are write-once items (ct, initial value), items
which are never read (initial value)

2.  CoRAL order implications:  The gist of the conversation is that for some
applications the order of items in the CoRAL serialization is significant,
but for other applications the order is not going to be of significance.
My guess is that for pub-sub the order is not significant and will start
that way.  The order however might be significant for some of the data that
is attached and attributed to the topic creator.  This leads to a CoRAL
discussion topic about how to put third party statements into a CoRAL
document in such a way as to make sure that the third party is identified as
responsible for the statements and not the provider of the CoRAL document.

3.  Hierarchy of topics: This really needs to be done, but nobody really
understands the implications of what should be done.  As an example, can you
"subscribe to a root resource" and get any events for all changes in the
child nodes as well as the root node.  If the answer is yes, then there are
questions about how this is presented to the subscriber to ensure that this
works well.  The ability to do filtering, condition/event triggers and so
forth makes this even more complicated.

4.  Currently the concept of creating a topic on publish of the data is no
longer viable.  There will be a method for providing an initial data item to
be published when the topic is created, along with the ability to do a
tombstone publication.  

Jim