Memcache-client benchmarks

Eric Hodel | Mon, 06 Mar 2006 22:15:00 GMT

Posted in ,

Stefan Kaes writes about using memcached for Ruby on Rails session storage wherein he finds that memcache-client beats out all comers in his session store benchmarks:

memcache-client-1.0.3 provides much better performance: much faster than either the old implementation, pstore or ActiveRecordStore, but also faster than my optimized SQLSessionStore using MysqlSession.

Comments RSS FEED

One question related to this I have been confused about and it would be great if you can throw some light on it. I apologize if this is a stupid question.

Does MemCacheD replicate the session data when it stores it in different mechines? From reading it’s documentation it is not clear whether it does it.

If there is no replication, one can’t use this for session storage since it won’t do a transperant session fail-over. I can understand the other usefulness to simply cache the data but that should be different from using it a session storage.

Thanks for your time, Venkat.

Venkat said about 6 hours later

memcached does not perform any replication of data. It hashes the cache key to determine which server use.

On the Robot Co-op sites session data is very short-lived so a server disappearing is unlikely to affect any of our users. If you need a long-lived session then memcached might not be the right solution for you.

Also, memcached is very, very reliable, the most reliable process on our site.

Eric Hodel said about 6 hours later

Comments are disabled