multithreading - Kafka high-level consumer: Can partitions have multiple threads consuming it? -


can messages given partition ever divided on multiple threads? let's have single partition , hundred processes hundred threads each - messages single partition given 1 of 10000 threads?

multiple threads cannot consume same partition unless threads in different consumer groups. single thread consume messages single partition although have lots of idle consumers.

the number of partitions unit of parallelism in kafka. make multiple consumers consume same partition, must increase number of partitions of topic parallelism want achieve or put every single thread separate consumer groups, think latter not desirable.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -