-
Notifications
You must be signed in to change notification settings - Fork 387
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
Introduce setting for committing without backpressure #883
Conversation
This is the difference between this PR and #874: ennru/alpakka-kafka@ennru:commit-and-forget...ennru:commit-and-forget-settings |
8542663
to
dde68c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I opened #882 as follow up to decide about this new feature's future, once it is merged. |
@@ -0,0 +1,3 @@ | |||
# PR #883 Committing without backpressure | |||
# https://github.com/akka/alpakka-kafka/pull/883 | |||
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.kafka.CommitterSettings.this") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mima exclusion files can be merged to one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
c2b1a77
to
5382e56
Compare
Purpose
Explore an API to send commits to Kafka without waiting for an acknowledgement.
This PR is an alternative to #874. This alternative uses a new flag in
CommitterSettings
to enable committing without backpressure on the existingCommitter
flows.References
#874 offers different factory methods to use committing without backpressure.
See #845
Changes
CommitterSettings.delivery
(CommitDelivery
)CommitWithoutReply
messageCommittableBatch.commitAndForget
Unrelated:
Background Context
It is not obvious why one would backpressure reading from a consumer when commits are not acknowledged by Kafka at the same rate. This new API opens for a new way of committing without waiting for the commit to get a reply from the Kafka broker.