title: How to encode/decode Kafka messages using Avro binary encoder?
body: <p>I'm trying to use Avro for messages being read from/written to Kafka. Does anyone have an example of using the Avro binary encoder to encode/decode data that will be put on a message queue?</p>
  
  <p>I need the Avro part more than the Kafka part.  Or, perhaps I should look at a different solution? Basically, I'm trying to find a more efficient solution to JSON with regards to space. Avro was just mentioned since it can be more compact than JSON.</p>