Re: [hybi] Fwd: The MessageBroker WebSocket Subprotocol

Martin Sustrik <sustrik@250bpm.com> Sun, 02 October 2011 11:51 UTC

Return-Path: <sustrik@250bpm.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D60321F8E8C for <hybi@ietfa.amsl.com>; Sun, 2 Oct 2011 04:51:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.5
X-Spam-Level:
X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[AWL=0.194, BAYES_00=-2.599, HELO_EQ_SK=1.35, HOST_EQ_SK=0.555]
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 yw1x21ccXfBb for <hybi@ietfa.amsl.com>; Sun, 2 Oct 2011 04:51:41 -0700 (PDT)
Received: from mail.moloch.sk (chrocht.moloch.sk [62.176.169.44]) by ietfa.amsl.com (Postfix) with ESMTP id 8C38121F8E8B for <hybi@ietf.org>; Sun, 2 Oct 2011 04:51:41 -0700 (PDT)
Received: from [10.9.1.2] (chello089173046084.chello.sk [89.173.46.84]) by mail.moloch.sk (Postfix) with ESMTPSA id 2043D188A028; Sun, 2 Oct 2011 13:54:39 +0200 (CEST)
Message-ID: <4E8850EF.3080604@250bpm.com>
Date: Sun, 02 Oct 2011 13:54:23 +0200
From: Martin Sustrik <sustrik@250bpm.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15
MIME-Version: 1.0
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
References: <92457F4F764A5C4785FCDBDDDD76477A123C1C1A@dfweml506-mbx> <4E88236E.4040405@ericsson.com>
In-Reply-To: <4E88236E.4040405@ericsson.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>, Hapner mark <hapner.mark@huawei.com>, csuconic@redhat.com
Subject: Re: [hybi] Fwd: The MessageBroker WebSocket Subprotocol
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Oct 2011 11:51:42 -0000

Hi Mark, Clebert,

What I *really* like about the proposal is that unlike other messaging 
protocols it takes care to cleanly separate the reliability from the 
broker behaviour. The latter is explicitly defined as out-of-scope.

Some comments follow:

1. Given the explicit focus on reliability, it's strange that the 
proposal deals with message metadata, which have to do with broker or 
even application behaviour and have absolutely nothing to do with 
reliability. What ensues is a spec where metadata are defined as opaque 
syntactic placeholders with no associated semantics. The semantics are 
meant to be defined on the broker or application level. The question is 
whether it doesn't follow that the syntax should be defined on those 
layers as well.

2. AFAICS there's nothing in the spec that presumes existence of the 
broker. It can be as well used for direct communication between 
applications. Thus, I would suggest replacing messaging broker/messaging 
client terminology with WebSocket server and WebSocket client wording.

3. As for reliability itself, it should be clear what kind of error 
conditions is the protocol meant to handle. Possible options:

a. Network failure. If so, how does it differ from simply turning off 
TCP keepalives?

b. Client failure and restart?

c. Server failure and restart?

Martin

On 10/02/2011 10:40 AM, Salvatore Loreto wrote:
> for some reason the mail below didn't go through the HyBi mailing list,
> so I am forwarding it (and of course working on try to figure out the
> reason of why it didn't go)
>
> cheers
> /Sal
>
> -------- Original Message --------
> Subject: 	The MessageBroker WebSocket Subprotocol
> Date: 	Sun, 2 Oct 2011 00:33:52 +0200
> From: 	Hapner mark <hapner.mark@huawei.com>
> To: 	hybi@ietf.org <hybi@ietf.org>
> CC: 	csuconic@redhat.com <csuconic@redhat.com>, Salvatore Loreto
> <salvatore.loreto@ericsson.com>
>
>
>
> Hi,
>
> Let me introduce myself since I have not posted to the list before.I've
> been involved with message brokers for some time. I was the engineer
> behind the creation of the Java Message Service API. I current work for
> Huawei's US Software Lab in Santa Clara, CA.
>
> Clebert is the JBoss HornetQ lead.
>
> Clebert and I are excited about the potential to bring the functionality
> of message brokers to the internet and we see WebSocket as the best
> message transport to enable this. We believe the WebSocket subprotocol
> described in the attached document provides the minimal extension to
> WebSocket needed for this purpose. We hope this subprotocol reflects
> well on the expectations the WG has for the use of WebSocket extensibility.
>
> We are submitting this document informally to the WG for its comment. It
> is our hope that it will mature into a subprotocol that can be submitted
> for either inclusion into the WebSocket specification; or, as a separate
> RFC. We would like to get the WG's thoughts on how best to proceed in
> this direction.
>
> http://www.ietf.org/id/draft-hapner-hybi-messagebroker-subprotocol-00.txt
>
> Mark Hapner
> Clebert Suconic
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi