In kafka, a Dead Letter Queue (or DLQ), is a simple kafka topic in the kafka cluster which acts as the destination for messages that were not
able to make it to the desired destination due to some error.
To create a dlq in this package, you can use the withDlq method. If you don't specify the DLQ topic name, it will be created based on the topic you are consuming,
adding the -dlq suffix to the topic name.
$consumer =\Junges\Kafka\Facades\Kafka::createConsumer()->subscribe('topic')->withDlq();//Or, specifying the dlq topic name:$consumer =\Junges\Kafka\Facades\Kafka::createConsumer()->subscribe('topic')->withDlq('your-dlq-topic-name')
To set configuration options, you can use two methods: withOptions, passing an array of option and option value or, using the `withOption method and
passing two arguments, the option name and the option value.