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

https://github.com/dmitrymomot/distlock

Go module for distributed locking
https://github.com/dmitrymomot/distlock

distributed-locking distributed-systems go golang gomodules redlock

Last synced: over 1 year ago
JSON representation

Go module for distributed locking

Awesome Lists containing this project

README

          

# distlock

[![Go Reference](https://pkg.go.dev/badge/github.com/dmitrymomot/distlock.svg)](https://pkg.go.dev/github.com/dmitrymomot/distlock)
[![Build Status](https://travis-ci.com/dmitrymomot/distlock.svg?branch=master)](https://travis-ci.com/dmitrymomot/distlock)

Go module for distributed locking based on article [How to do distributed locking](https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html) by Martin Kleppmann

## Usage
...

## Documentation

WIP: https://pkg.go.dev/github.com/dmitrymomot/distlock

## ToDo

- [x] mutex
- [ ] rw mutex
- [x] in-memory storage driver
- [ ] redis driver
- [ ] postgres driver
- [ ] documentation

## Alternatives

- https://github.com/go-redsync/redsync Distributed locking via Redis

> Don't afraid to add yours via pull request :)

---
Licensed under [Apache License 2.0](https://github.com/dmitrymomot/distlock/blob/master/LICENSE)