(def engine (k/engine {:engine-id :in-memory
:streams {:foo {:key.serde (serde/serde :keyword)
:value.serde (serde/serde :keyword)}}}))
(k/send! engine
:foo
:my-key {:foo-key1 :bar-value1
:foo-key2 :bar-value2})
(def consumer
(k/consumer engine {:group.id :a})
[:foo]
(fn [s k v] (println "stream" s "key" k " value" v)))
(k/start! consumer)
(k/stop! consumer)
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |