Replies: 2 comments
-
👋🏻 thanks for getting in touch. Indeed the Kafka Producer Idempotency specifically relates to the built-in retry mechanism and de-duplication of those — not that it will do de-duplication of messages that you ask the client to send. So the intention is that if you enable Producer.Idempotent then you can technically set cfg.Producer.Retry.Max to math.MaxInt and still have a guarantee that even during network turbulence or broker restarts you'll only end up with exactly one copy of your message stored in Kafka |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response.
I see, got it thank you ...
But if I get it right this proposition ( |
Beta Was this translation helpful? Give feedback.
-
Description
Hi,
Maybe I am getting the meaning/aim of idempotency in this library or Kafka in general. However, what I understand from the docs, code comments and other blog posts is that, enabling it (like show below) is meant to produce same message exactly once. Correct me if I am wrong please.
Technically, I am trying to produce same message exactly once.
Thanks
Note: I have seen this and this examples but they seem very complicated rather than keeping the producer and consumer in different files. To be honest, I am not even sure if they are applicable to me.
Versions
Configuration
Additional Context
Beta Was this translation helpful? Give feedback.
All reactions