Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)

Martin Tyler <martin.tyler@boo.org> Sat, 17 October 2009 08:54 UTC

Return-Path: <martin.tyler@boo.org>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C8DF73A6935 for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 01:54:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.976
X-Spam-Level:
X-Spam-Status: No, score=-1.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eOTwIU5bPI8Y for <hybi@core3.amsl.com>; Sat, 17 Oct 2009 01:54:33 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id A5D733A6862 for <hybi@ietf.org>; Sat, 17 Oct 2009 01:54:32 -0700 (PDT)
Received: by yxe30 with SMTP id 30so3577858yxe.29 for <hybi@ietf.org>; Sat, 17 Oct 2009 01:54:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.170.11 with SMTP id x11mr2845888ano.103.1255769674907; Sat, 17 Oct 2009 01:54:34 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <4AD2E353.8070609@webtide.com> <4AD2F43D.6030202@ninebynine.org> <4AD39A64.4080405@webtide.com> <Pine.LNX.4.62.0910132335390.25383@hixie.dreamhostps.com> <4AD53DCA.6050304@webtide.com> <Pine.LNX.4.62.0910170203460.9145@hixie.dreamhostps.com>
Date: Sat, 17 Oct 2009 09:54:34 +0100
Message-ID: <44abafb90910170154l22bd0892p2ba34a295b0c563d@mail.gmail.com>
From: Martin Tyler <martin.tyler@boo.org>
To: Ian Hickson <ian@hixie.ch>
Content-Type: multipart/alternative; boundary="001636c92b0164813104761da902"
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Sat, 17 Oct 2009 08:54:33 -0000

On Sat, Oct 17, 2009 at 3:34 AM, Ian Hickson <ian@hixie.ch> wrote:

> You are assuming monolithic servers like Apache, with multiple frameworks
> plugged into those servers. I'm imagining 100-line perl scripts. While we
> have such differing goals, I don't think we can come to an agreement on
> this. I want the protocol to be so simple that the frameworks are
> unnecessary; that if they are used, they would be the ones implementing
> the entire protocol on the server-side. In this world, there is no server
> to handle the multiplexing across multiple frameworks.
>
>
>
Could you explain why you are 'imagining' this? It's not how things are done
now, so why do you think server side development is going to suddenly
totally change just because WebSocket is available?

Are these multiple 100 line scripts all going to be separate processes
listening on separate ports on the same server? This just doesn't sound
likely at all.


I'm imagining server side APIs that wrap this up for you, handling the
multiplexing if we go down Gregs route, but even if not you still want
something to handle the protocol for you. It would be nice if there could be
a single server side API, but that is unlikely due to the number of server
side technologies and frameworks - but something fairly consistent could be
developed.

I really don't get this 11 year olds writing perl scripts idea - have you
explained the reasons, use cases, benefits etc of this?