title: Reading from latest offset from kafka with python
body: <p>I am using the confluent-kafka Python library to read from kafka.
  I am using the following consumer settings</p>
  <pre><code>Consumer ={
  &quot;bootstrap.servers&quot; : kafka_server,
  &quot;group_id&quot; : &quot;testing&quot;,
  &quot;auto.offset.reset&quot; : &quot;latest&quot;}
  </code></pre>
  <p>My goal is to ensure that I am always reading the latest messages in kafka. The above works as long as the program keeps running.  But if the program crashes for some reason it starts reading from the message it last consumed instead of the last message in the topic.</p>
  <p>I don't mind loosing a few messages but it is absolutely necessary that I am always reading the latest messages.  Looks the Consumer remembers  the offset and starts from it instead of from the latest one.</p>
  <p>I tried setting the <code>enable.auto.commit</code> parameter to False but I get the same results.</p>