integrant

2017-12-31T11:41:05.000011Z

How do you normally pass config to a "component"? I have a config map that I read with aero, and currently I manually build each component as a flat map of dependencies and some config values. I wonder if I should just merge the config map to the dependencies. Currently I do this:

:consumer
{:kafka-bootstrap-servers (:kafka-bootstrap-servers config)
 :group-id "some-service"
 :topics ["some-topic"]
 :db (ig/ref :some-service/db)}