[core] core-interfaces: rationale behind resource observation *attributes*

chrysn <chrysn@fsfe.org> Tue, 23 April 2013 00:39 UTC

Return-Path: <chrysn@fsfe.org>
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 9028B11E80E1 for <core@ietfa.amsl.com>; Mon, 22 Apr 2013 17:39:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AwhwIcy4NIGm for <core@ietfa.amsl.com>; Mon, 22 Apr 2013 17:39:36 -0700 (PDT)
Received: from prometheus.amsuess.com (prometheus.amsuess.com [IPv6:2a01:4f8:190:3064::2]) by ietfa.amsl.com (Postfix) with ESMTP id C8AF611E80BA for <core@ietf.org>; Mon, 22 Apr 2013 17:39:35 -0700 (PDT)
Received: from mail.amsuess.com (unknown [IPv6:2001:15c0:6765:1:a800:ff:fe57:ab1e]) by prometheus.amsuess.com (Postfix) with ESMTPS id 591E540123; Tue, 23 Apr 2013 02:39:33 +0200 (CEST)
Received: from hephaistos.amsuess.com (poseidon-stable [10.13.14.225]) by mail.amsuess.com (Postfix) with SMTP id 217AD4C143; Tue, 23 Apr 2013 02:39:32 +0200 (CEST)
Received: (nullmailer pid 22519 invoked by uid 1000); Tue, 23 Apr 2013 00:39:31 -0000
Date: Tue, 23 Apr 2013 02:39:31 +0200
From: chrysn <chrysn@fsfe.org>
To: core@ietf.org
Message-ID: <20130423003931.GB24192@hephaistos.amsuess.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="i0/AhcQY5QxfSsSZ"
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: [core] core-interfaces: rationale behind resource observation *attributes*
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Tue, 23 Apr 2013 00:39:36 -0000

hello,

draft-shelby-core-interfaces-05 introduced a modification to the
observation parameters, where observations that would in -4 look like
this:

> Req: GET Observe /s/temp?pmin=10&pmax=60&st=1
> Res: 2.05 Content Observe:0 (text/plain)
> 23.2

would turn into this:

> Req PUT /s/temp?pmin=10&pmax=60&st=1
> Res: 2.04 Changed
> 
> Req: GET Observe /s/temp
> Res: 2.05 Content Observe:0 (text/plain)
> 23.2

this seems to be a modification for the worse, for it introduces a
global state on the server (which previously resided in the observe
subscription that is stateful by design). if two subscribers connect,
the second will overwrite the observation parameters the first
configured. if the intention is that the parameters that are configured
at connection time stay valid for the connection, that's still open for
race conditions.

what was wrong with the old solution, and why was the new one chosen to
supersede the old one?

best regards
chrysn

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom