Re: [Json] draft-williams-json-text-sequence-00

Nico Williams <nico@cryptonector.com> Sun, 16 March 2014 22:30 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD7C21A0325 for <json@ietfa.amsl.com>; Sun, 16 Mar 2014 15:30:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.753
X-Spam-Level: *
X-Spam-Status: No, score=1.753 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HELO_MISMATCH_COM=0.553, IP_NOT_FRIENDLY=0.334, RDNS_NONE=0.793] autolearn=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 2QuabFUOdESS for <json@ietfa.amsl.com>; Sun, 16 Mar 2014 15:30:32 -0700 (PDT)
Received: from homiemail-a89.g.dreamhost.com (unknown [69.163.253.184]) by ietfa.amsl.com (Postfix) with ESMTP id EB1851A01A0 for <json@ietf.org>; Sun, 16 Mar 2014 15:30:31 -0700 (PDT)
Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id 6208A31805C for <json@ietf.org>; Sun, 16 Mar 2014 15:30:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=cEO9lC1BrJdVu5JRIrnJ iSBjWZM=; b=jRJqhKrGFnLFf1ggFg45E1vOpmzxNKJye00VsAMvaGZhZWK/i31z XeiY5HD0Oa1+fi9ce3BEnTI7bpUTl00GYo4CCvPfmDZHkVuVQ9OviOP+PEdB17Rf pBxCQSC04jtJdGEdQ/A0a8Jwsxi7OuEJfIc77CaCaSZbTg5tP0ulpD0=
Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id 16002318059 for <json@ietf.org>; Sun, 16 Mar 2014 15:30:23 -0700 (PDT)
Received: by mail-wi0-f179.google.com with SMTP id f8so1433430wiw.0 for <json@ietf.org>; Sun, 16 Mar 2014 15:30:22 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MQlCfItCXQDI1IRsrtlGqqlz8vx6H6qN0A93vqhUbg0=; b=P+gNFeCwA0x8V8tVvPAbz01iS3sYdkJJD5lZgM2OpAffjg2BQsG4RUCse90VOdEd6t iayrobj9zcX8KQx/ymIakqH4qrVOL0aC+pEMJk3gdptHMy5pHC8MiHGh6lmiMyzHCwS5 cZtaGkPIcaUzX0m+i4503t9R1XS8hi5EDMPT6oEBfm1G/BBH5rJFpTvQ3JzcQGJkypkV 4rJw6zFeUk89rB7C6jk9ljBO+792OXZzCQW3Pu1fPo9DDOPDUpufpgR7Rjl9TixUEAUR mnYGmdJJj4lzE0I1iX2ZsQEBuu7067wLqgRzEiZxg1im5kImU9ZZTgovaVhm2FigBqFE CswQ==
MIME-Version: 1.0
X-Received: by 10.194.57.38 with SMTP id f6mr64890wjq.59.1395009022817; Sun, 16 Mar 2014 15:30:22 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Sun, 16 Mar 2014 15:30:22 -0700 (PDT)
In-Reply-To: <CF4B7694.3E467%jhildebr@cisco.com>
References: <CAK3OfOg7Ly=unmjJY2E34LZT1DyqZ9VFUs4gtNNEiMJGA9cQKA@mail.gmail.com> <20140315194123.GG24343@mercury.ccil.org> <CAMm+LwiPrm+yx-oQwpKU2fLh6OsNsQZMyidnXwMHOryptxppZw@mail.gmail.com> <CAK3OfOhOjb+ZubpeMuifbkUybR9=NefXRRYvQK8y_zTfv4WpPQ@mail.gmail.com> <CF4B7694.3E467%jhildebr@cisco.com>
Date: Sun, 16 Mar 2014 17:30:22 -0500
Message-ID: <CAK3OfOif=ATzkqyQj5xfhyqVWt-OzipZks6PdJg597au36z8WQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/RXrtjHDI2cB5Ue_8k0_5tTQMFGw
Cc: John Cowan <cowan@mercury.ccil.org>, Phillip Hallam-Baker <hallam@gmail.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] draft-williams-json-text-sequence-00
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Mar 2014 22:30:33 -0000

On Sun, Mar 16, 2014 at 4:44 PM, Joe Hildebrand (jhildebr)
<jhildebr@cisco.com> wrote:
> On 3/16/14, 1:52 AM, "Nico Williams" <nico@cryptonector.com> wrote:
>>Speaking of which... what is the best way to longpoll (tail -f) a log
>>file over HTTP?
>
> A WebSocket.  One WS message containing each JSON object log message.  No
> need for new formats.

A WS works for some apps, yes.  Suppose the log is something like a
database replication log...  Initially I may want to fetch the whole
log, then I may want to tail it, and tailing could be "dumb", sending
what's available, when it's available, without having to find JSON
text boundaries.

Nico
--