Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用kafka consumer perf test(卡夫卡消费者性能测试)时,我每秒收到200万条消息,但使用C#client时,我每秒收到564k消息。如何压缩卡夫卡客户端的最大性能?_C#_Apache Kafka_Kafka Consumer Api - Fatal编程技术网

使用kafka consumer perf test(卡夫卡消费者性能测试)时,我每秒收到200万条消息,但使用C#client时,我每秒收到564k消息。如何压缩卡夫卡客户端的最大性能?

使用kafka consumer perf test(卡夫卡消费者性能测试)时,我每秒收到200万条消息,但使用C#client时,我每秒收到564k消息。如何压缩卡夫卡客户端的最大性能?,c#,apache-kafka,kafka-consumer-api,C#,Apache Kafka,Kafka Consumer Api,在这两种情况下(Kafka内置性能测试工具和C#客户端),我们都从相同的主题中读取了1个分区和1个复制因子。 卡夫卡性能测试命令: bin/kafka-consumer-perf-test.sh --topic topic2p1 --bootstrap-server localhost:9092 --messages 10000000 --threads 1 kafka消费者性能测试的完整结果

在这两种情况下(Kafka内置性能测试工具和C#客户端),我们都从相同的主题中读取了1个分区和1个复制因子。

卡夫卡性能测试命令:

bin/kafka-consumer-perf-test.sh --topic topic2p1 --bootstrap-server localhost:9092 --messages 10000000 --threads 1
kafka消费者性能测试的完整结果