zalando / friboo

Utility library for writing microservices in Clojure, with support for Swagger and OAuth
Apache License 2.0
119 stars 16 forks source link

Nicer configuration loading #115

Open dryewo opened 7 years ago

dryewo commented 7 years ago

Currently there is some annoying code duplication - first you load the configuration mentioning the namespaces, then you explicitly pull apart the loaded config map to give each component its part. Each component name has to be mentioned several times, and it's always repetitive

:NAME (map->NAME {:configuration (:NAME config)})

in the system map.

Consider using the approach from here: https://github.com/AvisoNovate/config Or just use the library itself.