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

[feature request] Support Consumer.getLastMessageId #349

Open
haphut opened this issue Nov 10, 2023 · 0 comments
Open

[feature request] Support Consumer.getLastMessageId #349

haphut opened this issue Nov 10, 2023 · 0 comments

Comments

@haphut
Copy link

haphut commented Nov 10, 2023

First off, thank you for all the development you do on Pulsar! 😄

Motivation

When combining data from two Consumers by event timestamps and the topics have significant backlog, it gets tricky to make sure that all relevant events have arrived. If we could check from the Consumer whether we have already read the latest message, that would simplify the code.

The C++ client already supports Consumer.getLastMessageIdAsync. (Though the Java client has deprecated the singular version of that method, supposedly due to the Consumers being able to subscribe to several topics concurrently. For us right now the singular version is enough.)

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

1 participant