Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 559 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 559 Bytes

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