project-reactor - Kafka 反应器消费者 API
问题描述
我需要在 kafka 消费者中实现重试功能。我正在使用弹簧反应器 api。
通量> inboundFlux = KafkaReceiver.create(receiverOptions).receive();
inboundFlux.subscribe(r -> {
if (accept(r)) {
r.receiverOffset().acknowledge();
}
}, this::errorOut);
inboundFlux.retry() 上的重试选项不起作用。请建议我如何使这项工作。
解决方案
推荐阅读
- php - 可点击元素靠得太近,内容比 Google 搜索控制台中的屏幕宽
- scala - scala数据集中出现频率最高的值
- android - 由于缺少 FTS rowid 列,房间迁移测试失败
- css - 为什么 div 继承父属性然后继承类属性?
- javascript - TypeError: Object(...) is not a function - Can't connect redux with wrapper function in react
- postgresql - 无法连接到服务器:连接被拒绝 - pgadmin4 - postgresql
- email - 重试在 MailWizz 中发送交易电子邮件
- php - 如何生成对象键?
- java - 错误:也许您在 JRE 而不是 JDK 上运行?(Ubuntu Bash 外壳)
- r - 如何在 R 编程的数据框中使用 _for_