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

Move offsets logic to the service out of the records storage #5

Merged
merged 2 commits into from
Jul 12, 2018

Conversation

bsideup
Copy link
Owner

@bsideup bsideup commented Jul 12, 2018

No description provided.

@bsideup bsideup requested a review from lanwen July 12, 2018 10:09
@bsideup bsideup merged commit 4005d52 into master Jul 12, 2018
@bsideup bsideup deleted the offserts_in_service branch July 12, 2018 15:05
public CompletionStage<Void> seekTo(long position) {
return kafkaReceiver
.doOnConsumer(consumer -> {
// + 1 because in Kafka "seek" moves the cursor to the desired next record

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it make sense to rename the method to 'seekAfter' instead?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the public API is "seekTo", just in Kafka they have this "+1" API.
Also, the rest of Liiklus uses "latest acked position" notation instead of "the offset to start reading from"

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

Successfully merging this pull request may close these issues.

None yet

2 participants