-
Notifications
You must be signed in to change notification settings - Fork 104
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
Streams context forward multiple topics? #5
Comments
Hi @imperio-wxm, Sorry for the seriously delayed response. The best way for you to do this is with HTH |
@bbejeck What if we want to create a new record in addition to what we have and forward both to different child processors ? It's like,
Is this a good practice ? |
I think that's the API(Kafka) restriction and wouldn't be a good practice. ParentTopo -> NewRecordTopo(createNewRecord) -> sink1
-> OldRecordTopo -> sink2 This could achieve your goal. @bbejeck maybe could give more insight about why Processor context cannot forward to two processors. |
Hi, @bbejeck I think @psawmora is right. I do like this, and it works, for a long time I didn't find any problems: switch(type) {
case type1:
context.forward(newKey1, newValue1, TOPIC_1);
break;
case type2:
context.forward(newKey2, newValue2, TOPIC_2);
break:
.......
} I wrote a generic |
But have you tried forwarding the same flow to two different processors at the same time ? |
Usually we set one processor forward to one sink.
There is any way to forward data to multiple topics?
I have one source,but i want sent data to two topics,such as:
The text was updated successfully, but these errors were encountered: