Re: memcached and PostgreSQL - Mailing list pgsql-performance

From Patrick B Kelly
Subject Re: memcached and PostgreSQL
Date
Msg-id 659B27BE-3C5C-11D9-8252-000A958A3956@patrickbkelly.org
Whole thread Raw
In response to Re: memcached and PostgreSQL  (Sean Chittenden <sean@chittenden.org>)
Responses Re: memcached and PostgreSQL
List pgsql-performance
On Nov 21, 2004, at 11:55 PM, Sean Chittenden wrote:

>
>> This is similar to sending email in a trigger or on commit where you
>> can't be certain you send email always
>> and only on a commit.
>
> While this is certainly a possibility, it's definitely closer to the
> exception and not the normal instance.

While an exception, this is a very real possibility in day to day
operations. The absence of any feedback or balancing mechanism between
the database and cache makes it impossible to know that they are in
sync and even a small error percentage multiplied over time will lead
to an ever increasing likelihood of error.

More dangerous is that this discrepancy will NOT always be apparent
because without active verification of the correctness of the cache, we
will not know about any errors unless the error grows to an obvious
point. The errors may cause material damage long before they become
obvious. This is a common failure pattern with caches.



Patrick B. Kelly
------------------------------------------------------
                               http://patrickbkelly.org


pgsql-performance by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: memcached and PostgreSQL
Next
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: memcached and PostgreSQL