Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5407D109DB for ; Sat, 20 Jul 2013 19:38:42 +0000 (UTC) Received: (qmail 69742 invoked by uid 500); 20 Jul 2013 19:38:41 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 69707 invoked by uid 500); 20 Jul 2013 19:38:41 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 69698 invoked by uid 99); 20 Jul 2013 19:38:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jul 2013 19:38:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jul 2013 19:38:36 +0000 Received: by mail-qa0-f54.google.com with SMTP id bv4so486911qab.13 for ; Sat, 20 Jul 2013 12:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VD9QzCXJwFMXTR/lcmGNWaUCCbEyEHWujJ5LXu9hyNE=; b=0xETwKbdDYLaDwbcicSIanw5npRhzDFTreQqTaW959qQuky8aZln9J36fEYKBEFs46 tybdel6aQYmosNjzVUDLr6rdPgYKIuH+FDArRn/oNGowzb/OhRNftqC+cGugt+SzwEUX b5Agnqpx0kqhVgf1RV+uXfK8ZvOFuGNK5gYiAwE+vhU8RtFkY2lZY7YpdgLY+y1k01qy vmjEl2gunUSnWa2kZ7BR6wCvlqpEoeiYQoUAQogHvLbOqN0wHGee3cx0JQHJyYOQggtc hRdTGWUyPEPcGVHxpRbffNfOMD0HClifUHvXY1rKVvv+vQriQTnKPjg2KPMD8PYyA2EO hGMA== MIME-Version: 1.0 X-Received: by 10.49.58.70 with SMTP id o6mr23582084qeq.1.1374349095388; Sat, 20 Jul 2013 12:38:15 -0700 (PDT) Received: by 10.49.1.52 with HTTP; Sat, 20 Jul 2013 12:38:15 -0700 (PDT) In-Reply-To: <7D8897CB-8A85-4A57-9ACA-FB9B3715D351@apache.org> References: <7D8897CB-8A85-4A57-9ACA-FB9B3715D351@apache.org> Date: Sat, 20 Jul 2013 21:38:15 +0200 Message-ID: Subject: Re: [PROPOSAL] Port _db_updates from rcouch to master From: Benoit Chesneau To: "dev@couchdb.apache.org" Content-Type: multipart/alternative; boundary=047d7b2e5290a0d01804e1f69520 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e5290a0d01804e1f69520 Content-Type: text/plain; charset=ISO-8859-1 +1. On Wed, Jul 17, 2013 at 10:00 PM, Jan Lehnardt wrote: > Hi all, > > I would like to propose (lazy consensus) to port the _db_updates > feature from rcouch to master before the next release. > > The code exists in a branch on ASF git (1684-feature-db-updates). > > Copying the full commit status: > > Import _db_updates from rcouch. > > This creates a new top level API endpoint: `/_db_updates` > that returns a line of JSON for each database event along > with the database name. > > A database event is one of `created`, `updated`, `deleted`. > > The API endpoint supports a `?feed=` parameter with the > options: `longpoll`, `continuous` and `eventsource`. > > A second parameter `timeout=` specifies when the server should > close the connection. > > `longpoll` closes the connection after a single notification. > It is the default option. > > `continuous` keeps a socket open until the specified `timeout` > or 60 seconds by default. > > `eventsource` works like continuous, but sends the data in > EventSource format. See > http://dev.w3.org/html5/eventsource/ > > > The parameters are modelled after the existing `/_changes` API > endpoint. Note that `/_db_updates` does not support resuming > of notifications via a sequence ID. > > This is a port of the existing DbUpdateNotification interface > to the HTTP API. > > Functional changes compared to rcouch: > > - make _db_updates an admin-only resource > > Docs: > > - updated api/misc to include basic info on `/_db_updates` > > License: > > Apache 2 license, updated LICENSE. > > Notice: > > (c) 2012 Benoit Chesneau, updated NOTICE. > > Tests: > > - only manual testing of the various API differences due to > complications with asynchronous HTTP requests in the JS > test suite and total annoyance of overly complicated > ibrowse/httpc modules for writing etap tests. > > Recommendation to ship this as EXPERIMENTAL until we have tests. > > Cheers > Jan > -- > > --047d7b2e5290a0d01804e1f69520--