-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differentiate producer/consumer configuration (#16)
The producer/consumer code was sharing the same configuration, which means the producer was being initialized as a consumer as well. If the producer starts first, it joins the same group and is assigned the only partition for the topic. When the consumer eventually comes online, it joins the group but is not assigned the partition, appearing to be stuck. This patch bifurcates the configuration on whether or not the Kafka client being stood up should be a consumer. Also, the PR adds a few hygienic options that should always be set for consumers (read committed, require stable offsets).
- Loading branch information
Showing
3 changed files
with
13 additions
and
6 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