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.
Re: Synchronizing Memcached application
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?
Re: Synchronizing Memcached application
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.
Post new comment