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.

Todd Hoff's picture

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?

atif.ghaffar's picture

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div ?=?><p ?=?> <img ?=?><h1 ?=?><h2 ?=?><h3 ?=?>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions
  • You may link to webpages through the weblinks registry

More information about formatting options

To combat spam, please enter the code in the image.