I have .Net 6 consumer of Kafka, that runs in several instances, all in the same group. Some messages can make the consumer instance crash. It's not possible to catch an exception and do something inside the consumer after crash happens.
I want the message that made the consumer crash not be processed anymore (none of instances in the group). Also I want to process the message that made the consumer crash in different way (send it to different consumer that will make logs or store it in database).
I found that Kafka has Dead Letter Queue topic and this may be what I need. But how can Kafka move the messages there by itself (since consumer can't do it)?