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 for both ZIO and cats-effect stacks and supports number of configuration back ends:
- Typesafe-config - HOCON file See typesafe-ce or typesafe-zio
- Etcd - Distributed reliable key-value store, that supports monitoring changes to keys. See etcd-ce or etcd-zio
libraryDependencies ++= Seq(
"com.github.fit51" %% "reactiveconfig-circe" % version
"com.github.fit51" %% "reactiveconfig-etcd-zio" % version,
"com.github.fit51" %% "reactiveconfig-typesafe-zio" % version
)
See examples here.
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.