Is there a plan to support configuring a dead letter topic in a different cluster?
According to the below SO answer, the feature is not currently possible. Spring cloud Kafka Stream - Dead Letter Topic in Different Cluster
I search the github issues, and SO questions about the issue.
The following SO question is relevant. Spring cloud Kafka Stream - Dead Letter Topic in Different Cluster
That answer is nearly 2 years old.
You can use a ListenerContainerCustomizer
bean to configure a DefaultErrorHandler
with a DeadLetterPublishingRecoverer
which is configured with a KafkaTemplate
to send the record to a different cluster.
Disable retries/DLT in the binder and configure the error handler with the desired retry characteristics.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.