title: If I use compression with Avro does it make sense to enable Topic Compression in Kafka?
body: <p>In Kafka you can set properties on your Producer to compress keys and and values.</p>
  
  <blockquote>
    <p><code>compression.codec</code> This parameter allows you to specify the compression codec for all data generated by this producer. Valid values are "none", "gzip" and "snappy".</p>
  </blockquote>
  
  <p><a href="http://kafka.apache.org/documentation.html#producerconfigs" rel="nofollow">http://kafka.apache.org/documentation.html#producerconfigs</a></p>
  
  <p>When using the Confluent platform I can use the <code>KafkaAvroSerialization</code> serializer.  If I define <code>avro.codec</code> is there any point using Kafka's compression or vice versa?</p>
  
  <blockquote>
    <p><code>avro.codec</code> the name of the compression codec used to compress blocks, as a string. Implementations are required to support the following codecs: "null" and "deflate". If codec is absent, it is assumed to be "null". The codecs are described with more detail below.</p>
  </blockquote>
  
  <p><a href="https://avro.apache.org/docs/1.7.7/spec.html#Object+Container+Files" rel="nofollow">https://avro.apache.org/docs/1.7.7/spec.html#Object+Container+Files</a></p>