Add retry and DLQ support for the Kafka binder

Fixes #498

- Honour the retry settings from ConsumerProperties;
- Add an additional  `enableDlq` option in KafkaConsumerProperties that enables forwarding failed messages to a DLQ topic.
This commit is contained in:
Marius Bogoevici
2016-04-28 14:32:17 -04:00
committed by Gary Russell
parent 4247fe42bd
commit fa42b62074
5 changed files with 311 additions and 71 deletions

View File

@@ -863,6 +863,12 @@ minPartitionCount::
The minimum number of partitions expected by the consumer if it creates the consumed topic automatically.
+
Default: `1`.
enableDlq::
When set to true, it will send enable DLQ behavior for the consumer.
Messages that result in errors will be forwarded to a topic named `error.<destination>.<group>`.
This provides an alternative option to the more common Kafka replay scenario for the case when the number of errors is relatively small and replaying the entire original topic may be too cumbersome.
+
Default: `false`.
==== Kafka Producer Properties