Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

makingspace/DistLock

Repository files navigation

DistLock

A Python client library to implement distributed locking. Allows distributed projects and applications to acquire locks on generic resources via a common locking backend.

Backends

Consul by HashiCorp

Consul:

Consul is a distributed service mesh to connect, secure,
and configure services across any runtime platform and public
or private cloud.

Consul was purpose build to make distributed systems more cohesive, and it provides native locking support.

Usage

You can manually interact with the DistLockConsulInterface methods such as acquire() and release(), but you'll likely find the lock_or_raise() context manager a convenient alternative.

Redis (Coming Soon)

Redis

Redis is an open source (BSD licensed), in-memory data structure store,
used as a database, cache and message brokerRedis is an open source
(BSD licensed), in-memory data structure store, used as a database,
cache and message broker. 

Redis provides a flexible key-value store that can be leveraged to facilitate distributed locking.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages