Commit graph

11 commits

Author SHA1 Message Date
Paul Ingles
6437dcd18d delete unused to-clojure definition 2013-06-07 21:09:02 +01:00
Paul Ingles
590f303a49 fix reflection warning 2013-06-07 16:30:16 +01:00
Paul Ingles
989965a2d1 add example for simple consumer 2013-06-07 14:57:41 +01:00
Paul Ingles
fa0de3cae0 update code to pass test; consumes messages but clj-kafka.consumer.zk/messages can't map the contents for us... 2013-06-07 13:55:17 +01:00
Paul Ingles
f661446647 start work on adding some tests; update message tests for 0.8 api 2013-06-07 08:33:51 +01:00
Davide D'Agostino
2383459067 Prevent Out of Memory with large streams
This version caps the queue and prevent OOM and obviously uses much less memory.

My app that use some like:

  (doseq [group (partition resolution (kafka/messages consumer topic))

Where resolution is a value of ~60000

Without this patch the memory usage was constantly around ~4gb

After dealing with OOMs and inspecting all vm snapshots I come that the problem was in the pipe, I checked your code then the linked article and was confirmed (in one comment) with the same solution.
2013-05-15 01:17:31 -06:00
Paul Ingles
7a3d348089 allow consumer.zk/messages to be passed multiple topics and aggregate into single seq 2012-05-18 11:02:22 +01:00
Paul Ingles
df01625a56 fix a bug with extracting the byte array of the payload: didn't honour the length of the payload, just extracted the underlying array. 2012-03-14 12:10:39 +00:00
Paul Ingles
efee73f42d Update README; pull with-resource into core; add producer 2012-01-26 10:56:32 +00:00
Paul Ingles
9ddb351353 Add namespaces for connecting with the ZookeeperConnector and SimpleConsumer consumers; updated version to 0.0.2-0.7-SNAPSHOT 2012-01-26 10:20:44 +00:00
Paul Ingles
df8cb2f747 first commit 2012-01-22 23:01:36 +00:00