Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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