reactive-config
reactive-config is a configuration library for Scala.
It provides functionality to get pieces of config, that reload. The piece of configuration is called Reloadable
. You can combine
and map
Reloadables
to construct change-propagation graphs.
Library is implemented on top of Monix Observable and supports number of configuration back ends:
- Typesafe-config - HOCON file.
See reactive-config-typesafe - Etcd - Distributed reliable key-value store, that supports monitoring changes to keys.
See reactive-config-etcd
Quickstart with sbt
libraryDependencies ++= Seq(
"com.github.fit51" %% "reactive-config-circe" % "0.1.0-alpha2",
"com.github.fit51" %% "reactive-config-etcd" % "0.1.0-alpha2"
)
Examples
See examples here.
Etcd
Run "sbt etcd/generateSources" to generate etcd GRPC services and move them to source directory.
Note
Library is in development.
It was originally created in private Bitbucket repository. Now, library is moved to GitHub with most of commits squashed due to some reasons.