<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I just finished rewriting our caching layer, and this is exactly what we did - ehcache backed by memcached.&nbsp; When invalidation occurs, the remote cache is rewarmed and a JMS message is broadcasted for all servers to refresh their caches.&nbsp; There's a lot more whiz-bang features, of course, and it performs pretty darn well.&nbsp; It takes about 5-10 minutes to convert a new cache based on ehcache over to one that is also backed by memcached and participates in all the cache management flows.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Matt Ingenthron &lt;Matt.Ingenthron@Sun.COM&gt;<br>To: Marcus Bointon
 &lt;marcus@synchromedia.co.uk&gt;<br>Cc: Memcached list &lt;memcached@lists.danga.com&gt;<br>Sent: Tuesday, August 28, 2007 10:31:28 PM<br>Subject: Re: memcached replication<br><br><div>Marcus Bointon wrote:<br>&gt; On 29 Aug 2007, at 00:37, Dustin Sallings wrote:<br>&gt;<br>&gt;&gt; My goal is not replication, but to allow for a sort of L1 cache in an <br>&gt;&gt; application with memcached as an L2 and cache invalidation service.<br>&gt;<br>&gt; That's a really nice idea. I've seen something vaguely similar with <br>&gt; jgroups, but it lacks the best bits of both memcache and in-process <br>&gt; caches (I'm also using APC with PHP). I can see that being a very <br>&gt; efficient system.<br><br>That's also what ehCache does (in process cache, with remote L2 cache) <br>for Java applications. <br><br>I've looked at it a bit and talked with Greg Luck about it (the night he <br>released his "benchmark" between ehCache and memcached).&nbsp;&nbsp;The
 <br>"benchmark" shows an impressive chart but leaves out the details you <br>really need to understand what's going on-- looks like his blog filled <br>in the details.<br><br>Personally, I see room for both approaches.&nbsp;&nbsp;From discussions with <br>others, there are times you just want an app to minimize local memory <br>usage.&nbsp;&nbsp;Plus, in talking with Greg, he specifically plans in most cases <br>to have a cache that overflows OS page buffer, which tells you it's <br>typically deployed in a different way than memcached.&nbsp;&nbsp;That doesn't <br>negate the fact that sometimes a well managed, in-process cache would be <br>an advantage.<br><br>- Matt<br><br>-- <br>Matt Ingenthron - Web Infrastructure Solutions Architect<br>Sun Microsystems, Inc. - Global Systems Practice<br><a target="_blank" href="http://blogs.sun.com/mingenthron/">http://blogs.sun.com/mingenthron/</a><br>email:
 matt.ingenthron@sun.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Phone: 310-242-6439<br><br></div></div><br></div></div><br>
      <hr size=1>Got a little couch potato? <br>
Check out fun <a href="http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz">summer activities for kids.</a></body></html>