-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: Having `KafkaConsumer.commitSync` be `async` is not always convenient as it suspends the `KafkaConsumer.messages` read loop and can therefore lower throughput. This PR introduces a new method `KafkaConsumer.commitAsync` that allows users who don't care about the result of the `commit` to commit in a "fire-and-forget" manner. Modifications: * new method `KafkaConsumer.commitAsync` * rename `KafkaConsumer.StateMachine.commitSync` to `KafkaConsumer.StateMachine.commit` to serve both `commitSync` and `commitAsync` * add new test for `KafkaConsumer.commitAsync`
- Loading branch information
1 parent
8592c61
commit 0324457
Showing
3 changed files
with
125 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters