Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does having single broker in Kafka mean when one consumer is consuming others have to wait ?

 
Ranch Hand
Posts: 2934
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Kafka, one can have more broker and that can form a Kafka cluster.Does having single broker for Kafka mean when one consumer is consuming others have to wait ? Thanks
 
Bartender
Posts: 2437
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One broker can have one topic. Multiple consumers can consume the same topic at the same time.
One topic can have multiple partitions. So, for example, if we have 3 partitions and 2 consumers. Consumer 1 can read partition 0 and 1. Consumer 2 can read partition 2.
Both consumers can read the different partitions of the same topic at the same time.
 
Monica Shiralkar
Ranch Hand
Posts: 2934
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. So, understood that multiple consumers can consume from different partitions of the same topic as partitions is what parallelism depends on.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic