简体   繁体   中英

python vs java for kafka implementation

@kafka users:

I have been trying to understand python client for kafka, including PyPy client as well. Following was a good benchmarking i read and realized some similar results:

http://mrafayaleem.com/2016/03/31/apache-kafka-producer-benchmarks/

I am extremely confused whether Java has a massive advantage over python, as the libraries are written using Java and kafka. So my question is, does the native implementation of Kafka in Java helps with performance tremendously when Java is used, or PyPy/Python works equally better?

Being a python programmer, I am not at all comfortable with java, and hence confused.

Apache Kafka defines a language neutral wire protocol (see https://kafka.apache.org/protocol ) and so clients can be written in any programming language and do not need to be based on the Java client that ships with the core Kafka distribution. For example, the c/c++ librdkafka library is a very high performance non-Java client. There are a number of python Kafka clients including one that is based on librdkafka. Benchmark results and other comparison information for the various Kafka Python clients is available here http://activisiongamescience.github.io/2016/06/15/Kafka-Client-Benchmarking/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM