Will the 'set' and the 'get' operation conflict?

Josh McFarlane josh.mcfarlane at gmail.com
Tue Jul 31 21:48:41 UTC 2007


On 7/31/07, Marcus Rueckert <darix at web.de> wrote:
> >       Under classic memcached, no two operations are executed at the same
> > time (it's single-threaded).  I don't fully understand the new multi-
> > threaded code, but it's probably safe to assume that no two
> > operations touch the same cache element at the same time.
>
> i think the bigger issue for him are 2 different server accessing the
> same memcached element.

It shouldn't matter if you have 2 or 200 servers accessing the same
element. Assuming your hashing is stable across all client servers, it
will end up requesting it from only one memcached instance, and that
memcached instance should ensure that each request is synchronized and
does not cause a collision.

-- 
Josh McFarlane


More information about the memcached mailing list