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

Consuming multiple topics while using States #553

Open
markuspinter opened this issue Oct 7, 2024 · 1 comment
Open

Consuming multiple topics while using States #553

markuspinter opened this issue Oct 7, 2024 · 1 comment
Labels
question Further information is requested

Comments

@markuspinter
Copy link

markuspinter commented Oct 7, 2024

Is your feature request related to a problem? Please describe.
I would like to build an application that consumes from two different topics.
It's kind of a syncing problem:
I have one producer early on in the pipeline that creates a "Batch" message to a topic which includes
a batch start and end time together with a batch id.
When the pipeline is processed (mainly data sanitization) the last application produces another message to another topic
which indicates "batch processed" (including the batch id).

Now I would like to store the Batch info into a state and do some processing when this "batch processed" event arrives in the other topic.

This essentially means that I have to use a Consumer rather the data_frame since I need to subscribe to multiple topics.

However I can't find an easy way with quixstreams of using States without a DataFrame.
Do you have a clean solution to this problem? I tried to reuse code from the _as_stateful() function from the Application class, but this is quite cumbersume due to the process_context that is required.

Is this an anti pattern? I'm pretty new to kafka streams and I'm learning along the way.

Thanks for the help!

@tim-quix
Copy link
Contributor

Heya @markuspinter !

QuixStreams 3.0 was just released and it allows you to consume from multiple topics at once with a StreamingDataFrame, so take a look and let us know if this solves your issue or not, as it sounds like it might!

@daniil-quix daniil-quix added the question Further information is requested label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants