Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 82814 invoked from network); 2 Aug 2010 18:36:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Aug 2010 18:36:00 -0000 Received: (qmail 15053 invoked by uid 500); 2 Aug 2010 18:35:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 14996 invoked by uid 500); 2 Aug 2010 18:35:59 -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 14988 invoked by uid 99); 2 Aug 2010 18:35:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 18:35:59 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of randall.leeds@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 18:35:53 +0000 Received: by qyk31 with SMTP id 31so281226qyk.11 for ; Mon, 02 Aug 2010 11:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=IfgGtHECaxxvyO2OWQ6iVr0Q8PER+f5MrX91IM/WWIs=; b=kXM3RNxt6GS4Ms1XWL1l+9dUC9c15+bmxOhgAxogvwEp1KwJkKwYU9MplQb5m8Pwa7 Su+SAwRxwWpUqHmkSITdb/e8P22zGvapQ2TNYU2bFXnageJHX1E4JHjjxiE1txwsmzB1 +0yJdImP6wZhzvGbpS0ylg72r52k1SRqdSYzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=S8Tq2FtcaGlo63+HYFYkSXNE7Oqx7jQTkfNNeP01ZGAi/xFT7/JosFV/frcRUexdlt 6XFWbjMbYw5JpK3BYFm1zFe2LoBmEKXzyE0famNgCbnjYBl5jWXOKb7zJSr4Jiw2gPd2 wP5j3vhY8xgCO5tjtGySSakksJe4nDHTd3nJk= MIME-Version: 1.0 Received: by 10.229.51.220 with SMTP id e28mr389807qcg.247.1280774132033; Mon, 02 Aug 2010 11:35:32 -0700 (PDT) Received: by 10.229.235.131 with HTTP; Mon, 2 Aug 2010 11:35:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Aug 2010 11:35:31 -0700 Message-ID: Subject: Re: Proposal for changes in view server/protocol From: Randall Leeds To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 On Mon, Aug 2, 2010 at 11:29, Jason Smith wrote: > On Tue, Aug 3, 2010 at 00:21, Randall Leeds wrote: > >> I'm 100% in favor of more radical js improvements like emonk. >> >> However, toward Jason's comment, what do you all think of exposing a >> saveDoc >> function instead? > > > I am eager to process form submissions from web browsers. Whatever makes > that possible would be just fine. > > I think the only significant critique about this is that the view server is > blocked, so what would process the validation functions? Chris said that > that's not a fatal flaw, you just spin up more view servers. I think the view server is blocked either way with the current protocol, no? Either way we're waiting for a response from couch to call back into JS, it's just whether we're calling the original function or the continuation. I don't have a strong preference either way, but I do slightly favor the callback continuation as a mild style preference. In either case, do we have to add some new response format so the query server can say "Hey call me again and tell me what to do with this result?" In other words, both of our suggestions can work on top of the same change that needs to happen to the view server line protocol, so you can code up either one and we can settle on what it should look like to people writing update handlers later, no?