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

Merge-join multiple streams #45

Open
markpapadakis opened this issue Oct 26, 2016 · 1 comment
Open

Merge-join multiple streams #45

markpapadakis opened this issue Oct 26, 2016 · 1 comment
Assignees

Comments

@markpapadakis
Copy link
Member

It should be easy to implement a TankClient utility method that facilitates joining multiple streams based on the message timestamp and a simple merge strategy.
For 1+ streams, we can just consume and buffer from streams and 'pop' the earliest message from all of those buffered message streams, and refill the stream when needed.
This should make it easy to join many different streams as if it was a single stream, all the while retaining time-based ordering (this doesn't guarantee strict ordering but it will almost always be the case anyway).
This can work for multiple partitions of the same topic, or multiple partitions across multiple topics.

@markpapadakis
Copy link
Member Author

There is a class like that, in heavy use here, but it hasn't been merged into the client, because we 'll eventually provide a Kafka-streams like abstraction that can also be used for joins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant