py-sherlock / sherlock

Easy distributed locks for Python with a choice of backends.
MIT License
374 stars 35 forks source link

Add a `KubernetesLock` backend #47

Closed judahrand closed 1 year ago

judahrand commented 2 years ago

This backend uses Kubernetes' Lease object to implement locking. This is useful for applications deployed to Kubernetes as it removes the need for additional infrastructure to be deployed (ie. Redis, etcd, etc.) especially in managed, Cloud settings.