Re: Should Web Services be served by a different HTTP n+1?

William Chan (陈智昌) <willchan@chromium.org> Thu, 24 January 2013 18:42 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B766921F8650 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 10:42:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.934
X-Spam-Level:
X-Spam-Status: No, score=-8.934 tagged_above=-999 required=5 tests=[AWL=0.743, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id azcCCIfqGrJJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 10:42:57 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D57A921F8635 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 24 Jan 2013 10:42:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TyRkI-0006On-0t for ietf-http-wg-dist@listhub.w3.org; Thu, 24 Jan 2013 18:41:54 +0000
Resent-Date: Thu, 24 Jan 2013 18:41:54 +0000
Resent-Message-Id: <E1TyRkI-0006On-0t@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1TyRkB-0006NC-Ci for ietf-http-wg@listhub.w3.org; Thu, 24 Jan 2013 18:41:47 +0000
Received: from mail-qc0-f174.google.com ([209.85.216.174]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1TyRk8-0003JJ-Px for ietf-http-wg@w3.org; Thu, 24 Jan 2013 18:41:47 +0000
Received: by mail-qc0-f174.google.com with SMTP id z24so2994193qcq.5 for <ietf-http-wg@w3.org>; Thu, 24 Jan 2013 10:41:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XtU7Ao8XcB4lrw9v150Yq/8LoV/kVLpwgN1RootMHdY=; b=TNj+/sp4D7Zv18O2o7GzxEHhfCxrO7PSgRbnBXXNxpcRMwtGMD7Fw/EK/9AygacntZ i1khGaXVzC/0ZHrHFVU4/uCmNp1ssZrfgNkWToxLKtIO+CRiz/LPCapOQ903VoGA2qlj SCbP5hTDQb0DzhMV7etMeAfGSZNnwRuK0+flde4ksuY9wkm/uPEVpvgWH21svvItjT+E Zm48Lt20u+xx5eWK3Va6nhuqPjyjS4bBcFv1vp4yQOUE2MFPn808nnZRrC58x/ktWhLd 6yYuOyJqwEKt0fZmFGKhm6AqTpBzvCOvMiIL2Q3npdJx6T0ytRG0ZalruTGxsS8DTpMK J5Bw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XtU7Ao8XcB4lrw9v150Yq/8LoV/kVLpwgN1RootMHdY=; b=LnKvw0F0/05WvFw5G4VWubNvBWwwNQ4Op+y2b40sbfzgv/AtGrCh3z38MERqvyz4fj gAt0kDLJNM48AQ9q7HMyDhOD/KmcMkPkMZzao58fovlK6lbBcJZ8NjOuw0NXf2ugZBLP xFB33eB+FN3ScQN33+3aN3syOgrs0KwlnEk3I=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=XtU7Ao8XcB4lrw9v150Yq/8LoV/kVLpwgN1RootMHdY=; b=nUTN67k33SntcV5/ScMl+CT8sGLd4VltdGxSSr4yNo3VgCL6DaM8BoMmJe6OvWc+8S Qytseie21Lc7W9ZJiRQb7twUH1zovbOYRwDxMAO050sHVs6RggcM6y4ssNzHYg5RSxbC KNswvCx/fBu5oLIbf2rLgvPpTCmO+DDdZxEgw33OzevJuc6a4d/pwBolxRnMvbNEg4Dz HnV/0fYK//Aa6F01EkgP5m73Ho85J9y4yose/YpwtAaHc6egizZOpcT4LpFTNp2HrBYe /zGDadLV+aVh4AruF6eKd95HfgyC1DTvE5LFX+mm1fgsWBzBccGQF72tS1M71XaNhAdJ ZGhg==
MIME-Version: 1.0
X-Received: by 10.224.216.9 with SMTP id hg9mr3046918qab.44.1359052878874; Thu, 24 Jan 2013 10:41:18 -0800 (PST)
Sender: willchan@google.com
Received: by 10.229.57.163 with HTTP; Thu, 24 Jan 2013 10:41:18 -0800 (PST)
In-Reply-To: <CAMm+LwgqYmwomf_3XFmqkS9bLTCEAaTt=f9bFuqhTfFzjFk3AQ@mail.gmail.com>
References: <CAMm+LwgTSw05QLUspAbAyRSWfd8j27fhwPiDSF_TaD8LevftBA@mail.gmail.com> <CAH_y2NEPLt=GkO575MfCi2aW4X+w40CzOVB05Z1+_rmLMXXSpw@mail.gmail.com> <CAMm+LwhJvSXgPzdqv2GscD-mfR4O7R_bba5JnAbdmP+uR+6SYA@mail.gmail.com> <510155E3.5020208@gmx.de> <CAMm+LwhCtd-m5uJnv+vcTTq9WcR3bEDQndV2cZqQE1ApNasCXA@mail.gmail.com> <CAA4WUYh3uP228QKjMwtTT2QQb9ypijdHPY-CkZF36j6DuTH4+A@mail.gmail.com> <CAMm+LwgqYmwomf_3XFmqkS9bLTCEAaTt=f9bFuqhTfFzjFk3AQ@mail.gmail.com>
Date: Thu, 24 Jan 2013 10:41:18 -0800
X-Google-Sender-Auth: ZWGGA-epRKCYRZu_hauXLnTa0Qw
Message-ID: <CAA4WUYj3rDUQQ4crdyJrun=2-MwOGQ32qRfv5oJKrx=JciqOCA@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Phillip Hallam-Baker <hallam@gmail.com>
Cc: Julian Reschke <julian.reschke@gmx.de>, Greg Wilkins <gregw@intalio.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQk5f9xSyuFMs3Bmc+s3pRZXk/etajRb7LQr0cFEWKOWmp+nDHfK2bocoTQLduhozM6lCutip6RfWVNokLSsP5hkkjC/Kqcseu9BJ285yNuo+u0etkKq0ysSpm7qoADC1BImRAPleQP6L2Y9zoHH08MmDcfFzfhkOkJVMmIOanL6xD2k2R90jae6b8PSa+MssosLI2LD
Received-SPF: pass client-ip=209.85.216.174; envelope-from=willchan@google.com; helo=mail-qc0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.765, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TyRk8-0003JJ-Px a7cce9cc30d87eedb56bef5824b7d0a7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Should Web Services be served by a different HTTP n+1?
Archived-At: <http://www.w3.org/mid/CAA4WUYj3rDUQQ4crdyJrun=2-MwOGQ32qRfv5oJKrx=JciqOCA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16170
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Thu, Jan 24, 2013 at 9:49 AM, Phillip Hallam-Baker <hallam@gmail.com> wrote:
>
>
> On Thu, Jan 24, 2013 at 12:34 PM, William Chan (陈智昌) <willchan@chromium.org>
> wrote:
>>
>> I think SPDY is simpler for parsing headers in comparison to HTTP/1
>> except for the compression part. Would you agree? Patrick has written
>> up a good comparison here:
>>
>> http://blog.jgc.org/2012/12/speeding-up-http-with-minimal-protocol.html#c5703739431744738432.
>>
>> Can you clarify what exactly bothers you about piping your messages
>> through a compression library? There are clearly some concerns, but I
>> want to hear what specifically bothers you.
>
>
> The main one is that the receiver has to have enough memory to store the
> dictionary.

I think this boils down to the argument on the other thread. Do the
gains for keeping state outweigh the costs? Note that given Roberto's
delta compression proposal, the sender can disable compression
entirely, so the receiver does not need to maintain state. Browsers
probably would not do this, due to our desire to optimize for web
browsing speed. For web services where you control the client, you
indeed would be able to disable compression.

>
> That in turn means that the sender has to know whether the receiver has
> enough space which in turn means that they have to have some way of
> negotiating the dictionary size if the result is going to be reliable.
>
>
> As currently specified, SPDY makes no sense to me because the first step in
> SPDY is to essentially short circuit any intermediary or proxy by layering
> over SSL. So now we have a Web browser talking directly to the Web Server.
> So

Just to be exact, SPDY does not mandate SSL. Current browsers that
support SPDY (Firefox and Chromium) only use it over SSL by default.

>
> 1) Every header that has to do with intermediaries just became irrelevant
> 2) There is no reason that the client should send cookies on any request
> after the first
> 3) The content preferences of a browser are unlikely to change either
>
> Seems to me like delta encoding of the header set and converting well known
> headers to tokens is all we need. Coap has already done this work.

Note that the SPDY4 proposal is to use delta encoding which should
look like http://tools.ietf.org/html/draft-rpeon-httpbis-header-compression-00.
And James has his
http://tools.ietf.org/html/draft-snell-httpbis-bohe-00 proposal for
optimizing the well known headers. Do you disagree with the direction
here?

>
>
> --
> Website: http://hallambaker.com/