Re: Kafka - Is it possible to achieve low latency (below 5ms?)

2018-06-02 Thread Matt Howlett
produce latency or producer -> consumer latency? 150ms is very high. Have a look at the kafka.network:type=RequestMetrics,name=TotalTimeMs,request=Produce broker metric which is the total message produce time. This will also account for most of the end-to-end latency the broker is responsible for,

Re: Beginning Kafka: Is Java necessary?

2017-08-27 Thread Matt Howlett
You can use Kafka very effectively from Python. There are a number of Python clients to choose from, the most popular ones being confluent-kafka-python, kafka-python and pykafka. The biggest thing missing for non-Java developers is Kafka Streams, though there is a very promising project underway to

Re: Python Kafka Client API to support kerberozed secure Kafka cluster?

2017-04-14 Thread Matt Howlett
confluent-kafka-python is built on librdkafka which can do kerberos security. https://github.com/confluentinc/confluent-kafka-python some notes on how to configure it are here: https://github.com/edenhill/librdkafka/wiki/Using-SASL-with-librdkafka On Thu, Apr 13, 2017 at 6:36 PM, Yuxiang Mai

Re: RdKafka & setting offsets

2016-12-07 Thread Matt Howlett
Two ideas: you could use a new consumer group id and set the TopicConfig property "auto.offset.reset" to "smallest". Consumers in the new group will read from the beginning on all partitions. Alternatively, as an example of how to set the offset explicitly, you can modify the AdvancedConsumer exa