Reputation: 2884
Flink allows to read from a Kafka topic, is that a performance bottleneck making Flink slower overall?
Upvotes: 0
Views: 476
Reputation: 43409
It depends. If, for example, you have a slow network connection between your Kafka cluster and your Flink cluster, then that will become a performance bottleneck.
Upvotes: 0
Reputation: 191681
Kafka partitions can scale horizontally to accomodate for higher thoughput.
One Flink consumer thread can only be assigned to one Kafka partition.
So, if you have only 1 Kafka partition, and N+1
Flink executors, then you will have N
idle tasks, which could be a bottleneck, sure, but that is a tradeoff of having total-ordering within a Kafka topic, not necessarily a Flink problem.
Otherwise, you would create your Kafka topics with ten to hundreds of partitions, and Flink would be fine to consume it.
Upvotes: 2