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

👉👈 Stream-stream left and outer join utility method to avoid 3.X grace period behavior #52

Open
clvacher opened this issue Jul 5, 2023 · 0 comments
Labels
enhancement This issue or pull request improves a feature expert Expert difficulty level

Comments

@clvacher
Copy link
Collaborator

clvacher commented Jul 5, 2023

Problem

Join behavior has changed since 3.X, as described in the following links:
https://issues.apache.org/jira/browse/KAFKA-13813
https://confluentinc.atlassian.net/browse/KSTREAMS-5249

Suggestion

Custom utility methods need to be implemented, in a similar logic to the one for DedupUtils : the method needs to take a callback function to describe what to do with the join once it is found.

For left joins, implementation can involve a window store on the right side, or even a timestampedKeyValueStore with a scheduled task for purging.
We could use polymorphism to make multiple levels of details:

  • default implementation with window store and Pair as the output
  • level 1 advanced implementation with timestampedKeyValueStore, default purge frequency and join behavior as a function parameter
  • level 2 with custom purge frequency and purge behavior as a function parameter
@clvacher clvacher added enhancement This issue or pull request improves a feature expert Expert difficulty level labels Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue or pull request improves a feature expert Expert difficulty level
Projects
None yet
Development

No branches or pull requests

1 participant