Hey Folks, I have a situation where I have one ver...
# troubleshooting
s
Hey Folks, I have a situation where I have one very big streams, and one small stream we connect them using key by. But on small stream we have observer one busy thread because of that backpressure is created in one of the upstream task. As per my understanding, distribution of the data is not equal because of key by column. Below is the screen shot:-
πŸ‘€ 1
r
Can broadcast join help in your case ?
s
I think no because if there is an any update on broadcast stream it will not update the state of main stream.
r
KeyedBroadcastProcessFunction
provides cross stream state access.
πŸ†— 1
s
Thanks @Rashmin Patel I am able to resolve this using broadcast join with sideputputs. But now getting in the issue where task responsible to write into kafka taking time. Before writing to kafka I am using union of the output coming from sideoutput+ broadcast join the key by and after that implementing flatmap processor. I have also implemented the record kafka schema to write keys and values in avro.
Can you suggest or give some pointers to understand this issue? I am not sure where to look at
πŸ‘ 1