Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understand Kafka write speed

Given that
1. Five machine Kafka cluster
2. 1 topic with 1 partition
3. persisted storage for msgs
4. Each msg of 1 KB
5. 10 producers

Now, Will the max write capability of this cluster BE EQUAL TO max write capability of one java thread onto a disk? If No, what will it be?

like image 873
Bhuvan Avatar asked Jun 06 '18 05:06

Bhuvan


People also ask

Why Kafka writes are fast?

Why is Kafka fast? Kafka achieves low latency message delivery through Sequential I/O and Zero Copy Principle. The same techniques are commonly used in many other messaging/streaming platforms. Zero copy is a shortcut to save the multiple data copies between application context and kernel context.

How do I check Kafka performance?

You can do this using the load generation tools that ship with Kafka, kafka-producer-perf-test, and kafka-consumer-perf-test. The kafka-*-perf-test tools can be used in several ways. In general, it is expected that these tools be used on a test or development cluster.

How many requests per second can Kafka handle?

How many messages can Apache Kafka® process per second? At Honeycomb, it's easily over one million messages.


1 Answers

if you only have one partiton then kafka cannot scale your topic and use only one machine out of your 5 instance cluster.

cannot tell how well you code your java but results will be similar to kafka I assume with small differences as kafka is optimised for disk writes.

like image 150
Gadi Avatar answered Sep 21 '22 15:09

Gadi