pnerg / consul-recipes

Implements the most common "recipes" on Consul such as leader election and semaphore

Version Matrix

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.

Download

Both libraries are cross-compiled for Scala 2.11, 2.12 and 2.13.
Latest version is consul-recipes
Simply add the following dependency:

"org.dmonix" %% "consul-recipes" % [version]
"org.dmonix" %% "consul-sim" % [version] % "test"