January 2018
Intermediate to advanced
336 pages
7h 56m
English
Once the configuration parameters are defined using Omniconf, they are accessible across the namespaces as immutable data. The configuration parameters are often used to create stateful objects, such as database connections. For example, in the Consumer service project, Omniconf made it possible to create a consumer database by directly looking up the :datomic :uri configuration parameter within the create-consumer-database function.
The helping-hands.consumer.persistence/create-consumer-database function has a side effect of database being created and also a new connection being initialized to connect to the created database. This connection has a state that must be shared across other namespaces of ...
Read now
Unlock full access