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

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: http://www.nabble.com/Append--2B-Search-Commands-to10684933.html

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

November 29, 1990 | Unregistered CommenterTodd Hoff

gupry,

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):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>