I am using Spring Cloud Stream with Avro and Confluent Schema Registry. I am using a single DLQ topic for all services, so messages with different schema may land in this topic. I have disabled the dynamic schema registration to ensure an incorrect message does not pass (schemaspring.cloud.stream.schema.avro.dynamicSchemaGenerationEnabled= false
).
However, the problem is due to the lack of schema on the dlq, I may lose a message from landing into this topic. Therefore, I would like to have the ability to produce messages in the JSON format to dlq and use Avro for the rest of the pipeline. I would appreciate it if someone can help me how this is achievable or can point me to an example for this matter.