title: Kafka message codec - compress and decompress
body: <p>When using <a href="http://kafka.apache.org/documentation.html" rel="noreferrer">kafka</a>, I can set a codec by setting the kafka.compression.codec property of my kafka producer.</p>
  
  <p>Suppose I use snappy compression in my producer, when consuming the messages from kafka using some kafka-consumer, should I do something to decode the data from snappy or is it some built-in feature of kafka consumer?</p>
  
  <p>In the <a href="https://cwiki.apache.org/confluence/display/KAFKA/Compression" rel="noreferrer">relevant documentation</a> I could not find any property that relates to encoding in kafka consumer (it only relates to the producer).</p>
  
  <p>Can someone clear this? </p>