Return-Path: Delivered-To: apmail-incubator-cassandra-dev-archive@minotaur.apache.org Received: (qmail 38906 invoked from network); 8 Jul 2009 21:32:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 21:32:35 -0000 Received: (qmail 9609 invoked by uid 500); 8 Jul 2009 21:32:45 -0000 Delivered-To: apmail-incubator-cassandra-dev-archive@incubator.apache.org Received: (qmail 9568 invoked by uid 500); 8 Jul 2009 21:32:44 -0000 Mailing-List: contact cassandra-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-dev@incubator.apache.org Received: (qmail 9558 invoked by uid 99); 8 Jul 2009 21:32:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 21:32:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of viktor.klang@gmail.com designates 209.85.219.221 as permitted sender) Received: from [209.85.219.221] (HELO mail-ew0-f221.google.com) (209.85.219.221) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 21:32:36 +0000 Received: by ewy21 with SMTP id 21so6444384ewy.12 for ; Wed, 08 Jul 2009 14:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=nY2MgjrSVRFT9SkYgC3ZZKrlhH0b4GRObUlGiv46344=; b=JTlWEl6NjelXLZD3owcVD7QgGrq2nnOp0krziqf7yed1ugZ7XxOS6s1BxgYJODjNMl mGIwpqSuZQADCZ550CTSkwqxoNRL2QXOXM6WAAv8qlWSopkJ5vVKzE2y2fygRLMQ84bv 08WcY12kytyD7QGobOXHGKzQ0f/5pG/grzHZU= 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=AKZNFREKiqi45HZ9fbpzTtOm01eakhg7FJdo+2yxGOPb9P0y+csUIwxOYTIGC4HylV EKCRHZ5JxseQ5S/a3SOD+Es6FucUHN1E2NHI1EjHn2h9C0YHsV6VBElgBysIVIhet1/f 87YMqs44LD7D/tL55tBbSzxDab/sWG69AHFUM= MIME-Version: 1.0 Received: by 10.216.72.206 with SMTP id t56mr786wed.31.1247088735130; Wed, 08 Jul 2009 14:32:15 -0700 (PDT) In-Reply-To: References: <123dcca0907081310o3eaa04f6k72e8e2373c829fa3@mail.gmail.com> <4d0f9db0907081353s4e63009k933b54081ed13eed@mail.gmail.com> Date: Wed, 8 Jul 2009 23:32:15 +0200 Message-ID: <4d0f9db0907081432y4a8583bese454df61fe38e5ec@mail.gmail.com> Subject: Re: REST client interface From: Viktor Klang To: cassandra-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=00504502c5ec0f93c6046e387920 X-Virus-Checked: Checked by ClamAV on apache.org --00504502c5ec0f93c6046e387920 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Jul 8, 2009 at 11:08 PM, Jonathan Ellis wrote: > If an operation fails at the transport layer, reconnect? I was more thinking along the lines of TSocket-connection pooling, one socket per Session, one socket per request, one socket per unit-of-work, or something else? Or is it better to be pragmatic and just go with Socket-per-request? > > > On Wed, Jul 8, 2009 at 3:53 PM, Viktor Klang > wrote: > > Hello guys, > > > > I'm toying with a Scala wrapper around the Cassandra Java API and I've > tried > > to plow thru most of the available documentation. > > However, I will probably spam the list with questions, my current > question > > is: > > > > * What's the "best practice" when it comes to connection-management? > > (TSocket) > -- Viktor Klang Scala Loudmouth --00504502c5ec0f93c6046e387920--