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

Sliding window-by-time? #373

Open
sorumehta opened this issue May 8, 2024 · 3 comments
Open

Sliding window-by-time? #373

sorumehta opened this issue May 8, 2024 · 3 comments

Comments

@sorumehta
Copy link

Hi, thanks for this amazing library for kafka streams! I am using window-by-time function over a stream of transactions, but it seems to be doing hopping window instead of sliding window. How can I achieve sliding window functionality?

@sorumehta
Copy link
Author

@kidpollo @jbropho Could you answer this please?

@kidpollo
Copy link
Contributor

Doing a quick search it seems you might need to create your own wrapper / custom interop. Simillar to https://github.com/FundingCircle/jackdaw/blob/3dc4b18e21c961ca8c12bfe5e8cf11066fbfa4a0/src/jackdaw/streams/interop.clj#L595C1-L599C69 While using SlidingWindows as you see https://developer.confluent.io/tutorials/sliding-windows/kstreams.html

As far as why jackdaw does not have it is because Jackdaw does not wrap 100% of Kstreams. Over time it has evolved but it evolves sooooooooooooo slow. I encourage you to create a pr 😄 cant guarantee it wil be looked at 😢

@sorumehta
Copy link
Author

@kidpollo I did create a PR after your encouragement: #374

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

2 participants