title: How multiple consumer group consumers work across partition on the same topic in Kafka?
body: <p>I was reading <a href="https://stackoverflow.com/questions/23136500/how-kafka-broadcast-to-many-consumer-groups">this SO answer</a> and many such blogs.</p>
  
  <p>What I know:</p>
  
  <p>Multiple consumers can run on a single partition when running multiple consumers with multiple consumer group id and only one consumer from a consumer group can consume at a given time from a partition.</p>
  
  <p>My question is related to <strong>multiple consumers</strong> from <strong>multiple consumer groups</strong> consuming from the <strong>same topic</strong>:</p>
  
  <ol>
  <li><p>What happens in the case of multiple consumers(different groups) consuming a single topic(eventually the same partition)?</p></li>
  <li><p>Do they get the same data?</p></li>
  <li><p>How offset is managed? Is it separate for each consumer?</p></li>
  <li><p>(Might be opinion based) How do you or generally recommended way is to handle overlapping data across two consumers of a separate group operating on a single partition?</p></li>
  </ol>
  
  <p>Edit:
  "overlapping data": means two consumers of separate consumer groups operating on the same partition getting the same data.</p>