rethinkdb / docs

RethinkDB documentation
http://rethinkdb.com/docs
Apache License 2.0
117 stars 168 forks source link

Guide for creating a distributed lock #883

Open thelinuxlich opened 9 years ago

thelinuxlich commented 9 years ago

Something similar to what @nviennot is doing on NoBrainer to guarantee uniqueness(using a dedicated table to manage the locks) would be nice for people who need this kind of stuff

danielmewes commented 9 years ago

That does sounds like a very interesting and useful piece of information.

I think it might be a bit too complex to fit it into the cookbook. It should probably be its own article? @chipotle what do you think? We could also do this as a blog post, maybe in addition to a page in the docs (@segphault thoughts?).

I think this is the NoBrainer implementation btw. https://github.com/nviennot/nobrainer/blob/master/lib/no_brainer/lock.rb ?