Skip to content
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

When the KafkaJS Consumer pulls messages from Kafka #1682

Open
shyswy opened this issue May 9, 2024 · 1 comment
Open

When the KafkaJS Consumer pulls messages from Kafka #1682

shyswy opened this issue May 9, 2024 · 1 comment

Comments

@shyswy
Copy link

shyswy commented May 9, 2024

I want to know when the KafkaJS Consumer pulls messages from Kafka.
I assume that the KafkaJS Consumer will pull messages after committing them.
ex1) After 'Auto Commit' by commitOffsetsIfNecessary() (which depends on autoCommitInterval or autoCommitThreshold)
ex2) After 'Manual Commit' byconsumer.commitOffsets()

Am I right?
If not, please let me know the actual process of KafkaJS's Consuming.

@ari-github
Copy link

From what I saw in the code, it pulls new messages after committing the old one. However, if you choose manual, even though you commit, it will wait until the processing of the messages is finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants