Consul Recipes & Consul Unit Test Simulator
This projects hosts two libraries
- consul-recipes Implements the most common "recipes" on Consul such as leader election and semaphore.
- consul-sim A simple simulator (not full implementation) of some of the HTTP API's to Consul. Very useful for e.g. unit testing
As well as two test sub-projects for playing with the functionality locally.
- integration-election Simple app to illustrate the usage of the leader election.
- integration-semaphore Simple app to illustrate the usage of the semaphore.
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"