Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consumer init offset end #388

Closed
itayB opened this issue Jun 21, 2016 · 5 comments
Closed

Consumer init offset end #388

itayB opened this issue Jun 21, 2016 · 5 comments

Comments

@itayB
Copy link

itayB commented Jun 21, 2016

I'm using kafka-node to consume messages from a specific Kafka topic. When I restart my node server, it init my consumer as expected, but it's default behavior is to start consume from offset 0 while my goal is to receive only new messages (aka start consume from current offset). I didn't find a way to achieve that from the API documentation. Anyone knows if its supported?

Thanks!

http://stackoverflow.com/questions/37949759/kafka-node-start-consume-from-last-offset

@hyperlink
Copy link
Collaborator

Take a look at #342. We recently merged code that can get you the latest offset. It should be in the next release.

@itayB
Copy link
Author

itayB commented Jun 21, 2016

When the next release should be?

@hyperlink
Copy link
Collaborator

@itayB I hope to publish it by the end of this week.

@itayB
Copy link
Author

itayB commented Jun 21, 2016

@hyperlink perfect! Can't wait to get it ;-)

Thanks

@hyperlink
Copy link
Collaborator

v0.4.0 has been published with the method to get latest offset.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants