-
Notifications
You must be signed in to change notification settings - Fork 19
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
Document message acknowledgement in ReactiveMessageConsumer #8
Comments
Beware that batched messages may not be acked if all the messages from the batch are not acked before closing the consumer (the consumer is closed when consumeOne/consumeMany completes). |
This is most likely caused by the lack of configuring |
The purpose of MessageResult is to have a functional and data (value) oriented way to do acknowledgments without side-effects. In functional programming, everything is a value. By googling, I found a related presentation "Railway Oriented Programming: Functional error handling". It's in different context, but that presentation explains the type of design. Wikipedia's "Result type" contains a short explanation. |
I think that if the consumer gets closed the batch will be fully redelivered to another consumer. So it's not really enough for the consumeOne case. |
|
The Reactive Java client takes a different approach for message acknowledgements.
The acknowledgement is modeled as a value (part of org.apache.pulsar.reactive.client.api.MessageResult) instead of a "side-effect".
This needs to be documented and explained.
The text was updated successfully, but these errors were encountered: