Skip to content

cloud-lock provides a means of distributed locking via cloud storage in Java. This let’s you do leader election to run certain workloads only once when your service is scaled out horizontally.

License

Notifications You must be signed in to change notification settings

original-flipster69/cloud-lock

Repository files navigation

cloud-lock

GitHub License Maven Central Version

cloud-lock provides a means of distributed locking via cloud storage in Java. This let’s you do leader election to run certain workloads only once when your service is scaled out horizontally. Doing it via cloud has the benefit of not needing to provision a database for that purpose if your service is stateless in the first place.

Which cloud providers are supported?

At the moment, cloud-lock works with 3 different cloud storage solutions by the following providers:

  • Google Cloud Storage (GCS) powered by Google Cloud Platform
  • Azure Blob Storage powered by Microsoft Azure
  • Object Storage Service powered by Alibaba Cloud

Getting started

Requirements

  • Java 11+
  • SLF4J
  • Dependency of cloud provider's storage solution that you actually use

Installation

Add the following dependency to your project:

  • Maven
    <dependency>
        <groupId>com.originalflipster</groupId>
        <artifactId>cloud-lock</artifactId>
        <version>0.0.8</version>
    </dependency>
  • Gradle
    implementation 'com.originalflipster:cloud-lock:0.0.8'

Documentation

Still questions left? Check the docs in my crib

About

cloud-lock provides a means of distributed locking via cloud storage in Java. This let’s you do leader election to run certain workloads only once when your service is scaled out horizontally.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages