https://github.com/fals/distributed-lock
Two examples of how to implement distributed locks
https://github.com/fals/distributed-lock
Last synced: 9 months ago
JSON representation
Two examples of how to implement distributed locks
- Host: GitHub
- URL: https://github.com/fals/distributed-lock
- Owner: fals
- License: mit
- Created: 2020-10-11T12:31:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-13T21:37:09.000Z (over 5 years ago)
- Last Synced: 2025-03-02T20:43:07.535Z (over 1 year ago)
- Language: C#
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ⚠️Post about the implementation here
Please, read before using it.
https://blog.fals.io/2020-10-13-distributed-lock/
# Build
```
> docker-compose -f docker-compose-redis.yml build
```
# Execute
To scale the consumers to test it up, you can use the scale flag
```
> docker-compose -f docker-compose-redis.yml up --scale consumer=3
```