NB!
The Kafka client in this repository is fully based on https://github.com/pyr/kinsky, and this is where all the credits should go.
The following updates to https://github.com/pyr/kinsky library and repository were made:
The library and tests jar are available on Clojars. Example usage with Leiningen:
:dependencies
[[org.clojars.konstan/kinsky "0.3.0"]]
:profiles
{
:test {:dependencies [[org.clojars.konstan/kinsky-test-jar "0.3.0"]]}
}
Kinsky is a somewhat opinionated client library for Apache Kafka in Clojure.
Kinsky provides the following:
[[spootnik/kinsky "0.1.23"]]
Thanks a lot to these awesome contributors
The examples assume the following require forms:
(:require [kinsky.client :as client])
(let [p (client/producer {:bootstrap.servers "localhost:9092"}
(client/keyword-serializer)
(client/edn-serializer))]
(client/send! p "account" :account-a {:action :login}))
(let [c (client/consumer {:bootstrap.servers "localhost:9092"
:group.id "mygroup"}
(client/keyword-deserializer)
(client/edn-deserializer))]
(client/subscribe! c "account")
(client/poll! c 100))
Can you improve this documentation? These fine people already did:
Pierre-Yves Ritschard, Jérémy Van de Wyngaert, Francois Rey, Karthikeyan Chinnakonda, Marcus Spiegel, Daniel Truemper, Konstantin Skaburskas, Pyry Kovanen, Deon Tan, Wouter Dullaert, Jeff Stokes & Vasily KolesnikovEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close