Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8F0AD66A for ; Thu, 30 May 2013 02:03:04 +0000 (UTC) Received: (qmail 28173 invoked by uid 500); 30 May 2013 02:03:04 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 28152 invoked by uid 500); 30 May 2013 02:03:04 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 28142 invoked by uid 99); 30 May 2013 02:03:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 02:03:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of malcolm.edgar@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 02:02:58 +0000 Received: by mail-ob0-f170.google.com with SMTP id er7so11787086obc.15 for ; Wed, 29 May 2013 19:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7UVPIAZzTUWHmNiDsoSJ+9JnBS843slba9Aq+ZMeTxw=; b=iAl/j7cz5YCeW410sS8yweVcP3oKGSPrSLDd7RfpsS0RvaPKaGnn1G5uUiQoKeINb5 Q9urR1ntUusf8Qqm0XQauPVsHfJjjWRfcB+vobqSLWRfLjYgLUZ8E5IRxMpPqcTjCmlX DEmt0f8SDsMi0aoelKXS66Hkf/3WReSZQn855xiQ+62iFHaClZWRbIJwlYymwQobOdao FyRFqnAaGvHteyJhEzOjXNIT9xwjMTncsocunl7l0d6N1NcqGqOo9ZmEltoa54+OmTiT KHv+xCRFfnoHBzSoyRtoTJ13+wRRJhKRwoJNQ+ba3DV6rO0igZMia72fA8+rdc1sSrRZ 5CMQ== MIME-Version: 1.0 X-Received: by 10.182.237.50 with SMTP id uz18mr3235443obc.51.1369879357130; Wed, 29 May 2013 19:02:37 -0700 (PDT) Received: by 10.76.153.162 with HTTP; Wed, 29 May 2013 19:02:37 -0700 (PDT) In-Reply-To: References: <51A69194.1060304@maniatis.org> Date: Thu, 30 May 2013 12:02:37 +1000 Message-ID: Subject: Re: Scale out From: Malcolm Edgar To: user Content-Type: multipart/alternative; boundary=e89a8ff2511c778d5e04dde5e416 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff2511c778d5e04dde5e416 Content-Type: text/plain; charset=ISO-8859-1 I have found using Caching Groups with relatively short timeouts 15 seconds, can have a huge performance benefit while still keeping most data quite fresh. On Thu, May 30, 2013 at 11:21 AM, Mike Kienenberger wrote: > And be careful not to overdo it. I made that mistake in my first > ecommerce app. > > In hindsight, it was sufficient to make sure the data was refreshed at > the beginning of each request, rather than "as soon as possible". > > > On Wed, May 29, 2013 at 7:39 PM, Aristedes Maniatis > wrote: > > On 29/05/13 8:14pm, Christian Grobmeier wrote: > >> > >> My concern is the Cayenne caching mostly. What if > >> App1 is doing an update and the next requests select from App2? > > > > > > No one can answer this other than you. What does happen? > > > > Are you writing an ecommerce system where data has to be fresh to the > > millisecond? Or does data need to be consistent per user/session? If the > > latter, sticky sessions will help you. If the former, you may need to > remove > > the cache entirely or use a distributed cache like Terracotta [1] > > > > From my own experience with distributed caching, it can get very > complicated > > very quickly. Luckily we were able to avoid all caching in the critical > > parts of the application, and plenty of non-distributed caching in the > other > > parts where performance was critical but 20 minutes of staleness was OK. > > > > Ari > > > > > > [1] > > > http://www.ehcache.org/documentation/2.4/terracotta/distributed-caching-with-terracotta > > > > -- > > --------------------------> > > Aristedes Maniatis > > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A > --e89a8ff2511c778d5e04dde5e416--