Retry logic in kafka consumer
<p>I have a use case where i consume certain logs from a queue and hit some third party API's with some info from that log , in case the third party system is not responding properly i wish to implement a retry logic for that particular log .</p>

<p>I can add a time field and repush the message to the same queue and this message will get again consumed if its time field is valid i.e less than current time and if not then get pushed again into queue.</p>

<p>But this logic will add same log again and again until retry time is correct and the queue will grow unnecessarily. </p>

<p>Is there is better way to implement retry logic in Kafka ?</p>