January 2018
Intermediate to advanced
336 pages
7h 56m
English
In the previous implementation, the Kafka consumer was created by calling the create-kafka-consumer function. Instead of creating a consumer by calling the function at runtime, it can be created and managed using Mount, as discussed in the previous chapter. To use Mount, make sure that the Mount dependency is added to the project.clj file, as shown here:
(defproject helping-hands-alert "0.0.1-SNAPSHOT" :description "Helping Hands Alert Application" :url "https://www.packtpub.com/application-development/microservices-clojure" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [io.pedestal/pedestal.service "0.5.3"] [io.pedestal/pedestal.jetty ...Read now
Unlock full access