title: Spring Kafka Template send with retry based on different cases
body: <p>I am using Spring Kafka's KafkaTemplate for sending message using the async way and doing proper error handing using callback.</p>
  
  <p>Also, I have configured the Kafka producer to have maximum of retries (MAX_INTEGER).</p>
  
  <p>However there maybe some errors which is related with avro serialization, but for those retry wouldn't help. So how can I escape those error without retries but for other broker related issues I want to do retry?</p>