title: kafka consumer polling timeout
body: <p>I am working with Kafka and trying to consume data from it. From the below line, I can poll the data from Kafka.</p>
  
  <pre><code>  while (true) {
      ConsumerRecords&lt;byte[], &lt;byte[]&gt; records = consumer.poll(Long.MAX_VALUE);
      for (ConsumerRecord&lt;byte[], &lt;byte[]&gt; record : records) {
          // retrieve data
      }
    }
  </code></pre>
  
  <p>My question is what is the benefit I am getting by providing <code>Long.MAX_VALUE</code> as the timeout as compared to if I provide <code>200</code> as the timeout. What is the best practice for the system that will be running production.</p>
  
  <p>Can anyone explain me the difference of high timeout vs low timeout and which should be use in production system?</p>