« IBMer Says LAMP Can't Scale | Main | This was a porn/spam post »

Synchronizing Memcached application

I have an application with couple of web servers that uses MemcacheD. How can i synchronize concurrent put to the cache? The value of the entry is list.

Atomic append operation could have been helpful, but unfortunately memcahe doesn't support atomic append.

Reader Comments (2)

I think Filipe Laborde has a patch:

I wonder though with an append how you prevent the accumulation of duplicates?

November 29, 1990 | Unregistered CommenterTodd Hoff


setup a NAS or buy one and use NFS.
We tried many things at synchronising the cache always thinking that NFS is bad.
Eventually there is nothing that beat a rm -rf /some/directory/group to clean a group cache.

PS: Writes are also synced as the clients (webserver) is using NFS.
A good NAS is not cheap but is well worth the investment.

November 29, 1990 | Unregistered Commenteratif.ghaffar

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>