https://github.com/pnerg/consul-recipes
Implements the most common "recipes" on Consul such as leader election and semaphore
https://github.com/pnerg/consul-recipes
consul leader-election scala semaphore
Last synced: 4 months ago
JSON representation
Implements the most common "recipes" on Consul such as leader election and semaphore
- Host: GitHub
- URL: https://github.com/pnerg/consul-recipes
- Owner: pnerg
- License: apache-2.0
- Created: 2018-10-25T16:42:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-13T22:00:40.000Z (over 1 year ago)
- Last Synced: 2025-02-09T18:38:01.900Z (8 months ago)
- Topics: consul, leader-election, scala, semaphore
- Language: Scala
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Consul Recipes & Consul Unit Test Simulator

[](https://codecov.io/gh/pnerg/consul-recipes)
[](https://maven-badges.herokuapp.com/maven-central/org.dmonix/consul-recipes_2.13)
[](https://javadoc.io/doc/org.dmonix/consul-recipes_2.13/latest/org/dmonix/consul/index.html)
This projects hosts two libraries
* [consul-recipes](consul-recipes/README.md) Implements the most common "recipes" on [Consul](https://www.consul.io) such as leader election and semaphore.
* [consul-sim](consul-sim/README.md) A simple simulator (not full implementation) of some of the HTTP API's to Consul. Very useful for e.g. unit testingAs well as two test sub-projects for playing with the functionality locally.
* [integration-election](integration-election/README.md) Simple app to illustrate the usage of the _leader election_.
* [integration-semaphore](integration-semaphore/README.md) Simple app to illustrate the usage of the _semaphore_.# Download
Both libraries are cross-compiled for Scala 2.11, 2.12 and 2.13.
Simply add the following dependency:
```
"org.dmonix" %% "consul-recipes" % [version]
``````
"org.dmonix" %% "consul-sim" % [version] % "test"
```