Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 53003 invoked from network); 14 Mar 2009 13:09:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2009 13:09:08 -0000 Received: (qmail 67217 invoked by uid 500); 14 Mar 2009 13:09:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67181 invoked by uid 500); 14 Mar 2009 13:09:06 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 67170 invoked by uid 99); 14 Mar 2009 13:09:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 06:09:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tkruthoff@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 13:08:56 +0000 Received: by wf-out-1314.google.com with SMTP id 28so2309459wff.29 for ; Sat, 14 Mar 2009 06:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Ahv51wffTFnaY2dTsZhieI0KDGUmfg5232F/1xJDBBg=; b=YsfHUBifd8mQdahk0TkdcOY7Is4ibNvUARjO10u+Do1WTT6FYjQqoEyIssW5uX3qBC nwHAkudup4BNQqct/CTJYy021aYyI87GX+siGPHccKtCDEp+k2CvcW0YJyv+lxb5E+/I Yqqgvg77OTt42Jxy7UUQua72/xx6QWS49o1d4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=CFnqXc43MBC7l9ijfzzEBr1lLw9VegzvzqxCufC0Sfl0L4Lzg2zTqCxkIXYb7CH7Is OgVeuqu01fDnNfP/SL5znSn057azFgrxsm2Ozal1GmMpzfzLdfu6FZdXnFEUhQ6bpZPc taeOwu99RdqUvpoFSXcHbauOvrac2/zyOKsF0= Received: by 10.143.13.17 with SMTP id q17mr1139214wfi.222.1237036115755; Sat, 14 Mar 2009 06:08:35 -0700 (PDT) Received: from ?10.0.1.191? (c-98-208-62-192.hsd1.ca.comcast.net [98.208.62.192]) by mx.google.com with ESMTPS id 20sm6565305wfi.32.2009.03.14.06.08.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 14 Mar 2009 06:08:35 -0700 (PDT) Message-Id: From: Troy Kruthoff To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Use couchdb as the data store for real-time chat room Date: Sat, 14 Mar 2009 06:08:34 -0700 References: <49BBA112.3090700@gmx.de> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org If performance and scalability are important you'll: 1) use xmpp as the backend 2) use evented anything over apache/fork/php (I recommend Twisted). You can still serve all the html, etc, with php, but hit the twisted server with the ajax long poll. If you google around, you'll find the consensus of many before you. -- troy On Mar 14, 2009, at 5:36 AM, howard chen wrote: > Hi, > > On Sat, Mar 14, 2009 at 8:20 PM, Sven Helmberger > wrote: > >> This sounds like it could be the main performance problem. I would >> expect >> some form of COMET or even the long request pattern to improve your >> performance. >> > > > Yes, but we are serving many concurrent users, so I don't want to hold > a persistence connection from the server to client. (we are using > Apache2/pre_fork, mod_php) > > As since our polling interval is adaptive, is it quite easy to scale > by adding servers currently. > > Howard