[
https://issues.apache.org/jira/browse/KAFKA-10523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623902#comment-17623902
]
Till Rohrmann commented on KAFKA-10523:
---------------------------------------
Being able to provide the producer ID and sequence number would indeed be very
powerful to build a system that can produce with exactly-once guarantees into a
Kafka topic across restarts. For example, if I have a set of messages that have
a sequence number assigned, I could instantiate the Kafka producer with a fixed
producer ID (with me being responsible for the uniqueness of the producer ID)
and the sequence number from the next message to send.
> Allow to provide producer ID
> ----------------------------
>
> Key: KAFKA-10523
> URL: https://issues.apache.org/jira/browse/KAFKA-10523
> Project: Kafka
> Issue Type: New Feature
> Reporter: Luigi Berrettini
> Priority: Minor
>
> I read about the implementation of idempotence and saw that it is only
> guaranteed within a producer session, since it depends on a PID reassigned
> every time the producer (re)start.
> The PID is probably assigne relying on ZooKeeper, but I was wondering if it
> could be possible to support providing a PID externally to gain idempotence
> across restrarts e.g. having the producing application read the PID from a
> configuration file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)