fit51 / reactive-config

A Scala configuration library with reloading functionality. Pieces of configuration are reactive variables, that compose a change propagation graph.

GitHub

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:

Quickstart with sbt

libraryDependencies ++= Seq(
    "com.github.fit51" %% "reactive-config-circe" % "0.0.3",
    "com.github.fit51" %% "reactive-config-etcd"  % "0.0.3"
)

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.