Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 63053 invoked from network); 24 Aug 2007 21:05:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 21:05:11 -0000 Received: (qmail 96804 invoked by uid 500); 24 Aug 2007 21:04:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96774 invoked by uid 500); 24 Aug 2007 21:04:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 96761 invoked by uid 99); 24 Aug 2007 21:04:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 14:04:56 -0700 X-ASF-Spam-Status: No, hits=3.3 required=10.0 tests=FS_REPLICA,HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dwayneindividual@gmail.com designates 209.85.132.241 as permitted sender) Received: from [209.85.132.241] (HELO an-out-0708.google.com) (209.85.132.241) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 21:04:48 +0000 Received: by an-out-0708.google.com with SMTP id b2so130864ana for ; Fri, 24 Aug 2007 14:04:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NR8342QNN37vvHbNtbiPFo+/aNPX2T5GdV2ybrI6lwMWBnPhuyivj9fiLZ9CvIOtNCMXHsj3mbOBNQ6U/zJvWLh2kB0savGePXTQd6+benop4W78bi0dkyqt6H/V6H8CoidBAYpHqv7jdIATbwRrYApkWCAptg+wEcEUUIJHGP4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dnhFLheF8jooZ9GFTvqCjkSQzHpsyA9GxFGQq2t2Ce2CsdDXAPpFpI/k0Dv7Nezg+Wpj64ZnlMQQSIknkFkYMxJm3mcQu7UX5e++7lwZZdzGJuZ81ejVFrLkmh+4dZWiOAXOgB8AvsHZL19uaVBQyClA1ub7beUO741s3kZR5jo= Received: by 10.142.212.19 with SMTP id k19mr398739wfg.1187989467179; Fri, 24 Aug 2007 14:04:27 -0700 (PDT) Received: by 10.143.163.20 with HTTP; Fri, 24 Aug 2007 14:04:27 -0700 (PDT) Message-ID: <4330874c0708241404x2ce77c28nb2994eabccce843e@mail.gmail.com> Date: Fri, 24 Aug 2007 14:04:27 -0700 From: Dwayne To: "Tomcat Users List" Subject: Re: [OT] Session replication vs stateless In-Reply-To: <12319704.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_87571_26578898.1187989467154" References: <12319704.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_87571_26578898.1187989467154 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Have you considered distributed caching for session replication? I avoid stateless like the plague. There are several tools out there for this, but my favorite (because they are open source) is Terracotta. It clusters the JVMs. Native clustering in Tomcat putters out, in my experience, after 3 nodes. With Terracotta, I dropped in the code and now am clustering 5 nodes and getting a lot higher TPS. I think it is worth the hour it took me to implement it and I didn't have to change my code at all, just write a short XML and drop some tags around what I wanted to distribute. Get it at terracotta.org. The support docs do not say they support Tomcat 6 yet, but I have yet to hit any bugs (3 weeks in). On 8/24/07, lightbulb432 wrote: > > > Although the debate between session replication vs stateless can't be > definitively solved and depends on the application, I'd like to hear about > your experiences with both. How are you designing your current > applications, > and what implications has the choice that you might not have expected - > would you do anything differently if you could? > > I ask because I'm still unsure about whether to decrease memory usage by > increasing database usage (or bandwidth usage if sending state back to the > client) by going stateless at the application tier. > > Stateless > > Are there any people using stateless application tiers with transactions > that are inherently stateful, such as wizard-type screens or other > business > processes or workflows? How'd that turn out? > > Did you choose to move this state to the client (through cookies) or to > the > database? > > Session replication > > For session replication in Tomcat 6, what's the ideal replication group > size > in general? Would you ever want to set it to more than 2 instances? > (Because > for any more, then you'd have a lot more overhead in transferring state > back > and forth to even more other instances...) > > With session replication between 2 machines, are you effectively reducing > the capacity of each server, at least in terms of memory, by 50%? > Hopefully > I'm looking at it the wrong way, because it not, I'm not really liking the > session replication idea if I'm decreasing hardware usage by half. > > Thanks. > -- > View this message in context: > http://www.nabble.com/-OT--Session-replication-vs-stateless-tf4325727.html#a12319704 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > ------=_Part_87571_26578898.1187989467154--