[英]Idempotent Kafka Producer writing to multi-partitioned topic
Does an idempotent producer have to be transactional in order to ensure idempotency when publishing to a multi-partitioned topic?幂等生产者是否必须是事务性的,以确保在发布到多分区主题时的幂等性? After reading Kafka documentation I am still unsure if it does or not.
在阅读了 Kafka 文档后,我仍然不确定它是否确实如此。
My environment is Kafka 1.0 cluster and Kafka 1.1 client.我的环境是 Kafka 1.0 集群和 Kafka 1.1 客户端。
Idempotent producer create an id which is send with the messages.幂等生产者创建一个与消息一起发送的 id。 With this id, the lead broker is able to say 'Oh, I already treated this message'.
有了这个 id,主经纪商就可以说“哦,我已经处理了这条消息”。
Idempotent producer and transactional messaging are two different approaches of making a exactly-once messaging semantics. 幂等的生产者和事务性消息传递是制作完全一次消息传递语义的两种不同方法。
So, no !所以不行 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.