From cassandra-user-return-604-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Wed Sep 16 05:56:38 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 98616 invoked from network); 16 Sep 2009 05:56:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Sep 2009 05:56:38 -0000 Received: (qmail 97418 invoked by uid 500); 16 Sep 2009 05:56:38 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 97399 invoked by uid 500); 16 Sep 2009 05:56:38 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 97390 invoked by uid 99); 16 Sep 2009 05:56:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 05:56:38 +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 (nike.apache.org: domain of contact@shahan.me designates 68.71.241.8 as permitted sender) Received: from [68.71.241.8] (HELO mail2.localdomain) (68.71.241.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 05:56:29 +0000 Received: from mail.gpanetwork.com (unknown [192.168.1.15]) (Authenticated sender: contact@shahan.me) by mail2.localdomain (Postfix) with ESMTPSA id 73308852880 for ; Wed, 16 Sep 2009 05:56:05 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 16 Sep 2009 05:56:05 +0000 From: To: Subject: Re: random n00b question In-Reply-To: References: <4AAE1581.90309@boboco.ie> <7bfc6c610909141609k20f402c7o4419428916e8a642@mail.gmail.com> <7bfc6c610909141623k382b8302g1c6c9c9a8f9bfc2a@mail.gmail.com> <4AAF6CCA.3030205@boboco.ie> Message-ID: <4c3967db5a7d1af062f5d90e7d4ce411@mail> X-Sender: contact@shahan.me User-Agent: RoundCube Webmail/0.2.1 Content-Type: multipart/alternative; boundary="=_23704d4f412d9f58314ed5289cafce46" X-Virus-Checked: Checked by ClamAV on apache.org --=_23704d4f412d9f58314ed5289cafce46 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Is there a specific reason to store the session data in the database? For my web-app, I use a memcached cluster, which alleviates the database load. Shahan On Tue, 15 Sep 2009 10:13:41 -0500, Jonathan Ellis wrote: > On Tue, Sep 15, 2009 at 10:09 AM, Mark Robson wrote: >> Even using quorum reads and writes, if a user in the same session has two >> pages active at once, session data would be trashed. > > True. But for most web apps I've seen, last-write-wins is just fine. > YMMV. :) > > -Jonathan --=_23704d4f412d9f58314ed5289cafce46 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
Is there a specific reason to store the session data in the database? =
For my web-app, I use a memcached cluster, which alleviates the database lo=
ad.

Shahan

On Tue, 15 Sep 2009 10:13:41 -0500, Jonathan Ellis=20
wrote:
> On Tue, Sep 15, 2009 at 10:09 AM, Mark Robson  wrote:
>> Even using quorum reads and writes, if a user in the same session =
has two
>> pages active at once, session data would be trashed.
>=20
> True.  But for most web apps I've seen, last-write-wins is just fine=
=2E=20
> YMMV. :)
>=20
> -Jonathan
--=_23704d4f412d9f58314ed5289cafce46--