Skip to content

A experimental Go package to create distributed locks using S3 without using Databases.

License

Notifications You must be signed in to change notification settings

Cool-fire/aws-s3-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-s3-lock

A experimental Go package to create distributed locks using S3 without using Databases.

The General flow is

  1. Attempt to Acquire lock
  2. If succesfull do the main operation with in the configured timeout.
  3. Release the lock

This go package uses fencing tokens as suggested in the blog to make the lock safe against race conditions. This package is heavily influenced and most of the code is adapted from aws-s3-lock

About

A experimental Go package to create distributed locks using S3 without using Databases.

Resources

License

Stars

Watchers

Forks

Languages