Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teo-sl/gcp-python-distributed-lock
A robust algorithm for a distributed lock on google cloud storage written in Python
https://github.com/teo-sl/gcp-python-distributed-lock
cloud cloud-functions distributed-computing distributed-lock gcp gcs google-cloud google-cloud-storage lock multithreading python
Last synced: about 2 months ago
JSON representation
A robust algorithm for a distributed lock on google cloud storage written in Python
- Host: GitHub
- URL: https://github.com/teo-sl/gcp-python-distributed-lock
- Owner: teo-sl
- License: mit
- Created: 2024-11-21T16:17:20.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-23T21:07:20.000Z (2 months ago)
- Last Synced: 2024-11-23T22:18:31.605Z (2 months ago)
- Topics: cloud, cloud-functions, distributed-computing, distributed-lock, gcp, gcs, google-cloud, google-cloud-storage, lock, multithreading, python
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GCP-Python-distributed-lock
A robust algorithm for a distributed lock on google cloud storage written in Python.This algorithm is based on this article.
The basic parameters are:
- ttl: how long a lock will be considered active
- refresh_interval: how often the daemon will update the expiration timestamp on the file lock
- max_refresh_failures: how many times will the daemon retry to update the lock metadata in case of an error
- identity: the process id, needs to be unique across the different processes that want to acquire the lock