I am looking for a readers-writer lock that can be used in python in a distributed system.
So far I've found:
- redlock, which is based on redis. Does not provide a readers-writer lock.
- The distributed package of dask offers a lock, but again, no readers-writer lock.
- kazoo, which works with Zookeeper, offers a readers-writer lock. However Zookeeper is an extremely heavy dependency, as it written in Java and therefore requires the JDK.
Is there a more lightweight alternative to kazoo / Zookeeper? Ideally a pure python solution that is nevertheless battle tested?