hi all,
I'm developing a software where memcached is also used as locking server.
The problem is that, i wanna make this fail safe; which basically means
if the memcached server goes down, another one starts and the locks are
transformed. This basically handled by keeping two instances up, one as
master and if the master dies, slave becomes master and an new slave
comes live.
This is my guess, but I'm looking for some good best practices not to
invent wheel from scratch.
So is there any link you can provide where a best practice for memcached
based locking is present ?
btw. i'm using php in a distributed environment.
thnks.