-
-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idempotent Producer #200
Comments
@tulios Is there a configuration like the Java API's |
KafkaJS doesn't have maxInflight connection yet, I might start it in 1 or 2 weeks. Take a look at #148 where we had a discussion about it. |
@tulios Ok cool. I don't think that's a blocker for implementing the rest of the idempotent producer, though it seems we can't strictly guarantee eos without it |
FYI I'm creating a "transactionManager" module for the producer, so we can easily share state around transactions. You can see how I'm planning to use it here, where I provide it to the sendMessages factory method so that it can later be used to increment the topic/partition sequence: https://github.com/tulios/kafkajs/blob/eos-200-idempotent-producer/src/producer/index.js#L27 |
Allow users to create idempotent producers. We create an idempotent producer by passing an
idempotent
flag during creation:Creating an idempotent producer is a prerequisite for the transactional producer (see related discussion in #173 )
Tasks
InitProducerId v0
during initialization (perhaps when we callproducer.connect()
)Spec
From KIP-98:
The text was updated successfully, but these errors were encountered: