Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Distributed lock on top of memcached. A simple Python context manager (taking advantage of the with statement) that implements a distributed lock using memcached to store lock state: “memcached_lock can be used to ensure that some global data is only updated by one server”. Redis would work well for this kind of thing as well.

Tagged , , , , , , ,

3 comments

  1. Good point. I hadn't tohuhgt about it quite that way. :)

    King - 3rd July 2011 05:05 - #

  2. Many many quality pinots there.

    Jady - 8th October 2011 18:50 - #

  3. You've got to be kdiidng me—it's so transparently clear now!

    Mahaley - 10th October 2011 05:36 - #

Comments are closed.
A django site