Giter Club home page Giter Club logo

dynamolock's Introduction

Dynamolock

Dynamolock is a a distributed lock client on top of dynamo written in python. As long as clients use the library and respect the protocol, it provides gurantees that a lock will not be taken unless:

  1. the lock is explicity unlocked by its owner
  2. the lock is delete by its owner
  3. the lock has timed out locally

Furthermore, if any operation interleaves when we determine that we are okay to perform a lock operation and when we actually make that operation, it is prevented by using check-and-set(CAS) on the owner and version number of the lock.

To test if a lock is timed out, the lock in question stores a duration field in dynamo. When a client tries to acquire the lock, it must first wait at least that amount of time locally (now() + duration) before it is allowed to take over the lock. This protocol ensures that work can progress even in the face of failed clients without having to distribute up-status between clients.

For more information, please read the documentation at: https://readthedocs.org/projects/dynamolock/

dynamolock's People

Contributors

bashwork avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.