Re: Order of Execution in KeyedBroadcastProcessFunction

2023-09-12 Thread liu ron
Hi, The KeyedBroadcastProcessFunction#processBroadcastElement is called in outer CoBroadcastWithKeyedOperator[1], CoBroadcastWithKeyedOperator is a two-input operator. As David says, this operator is run in a single thread, so the processBroadcastElement method will run to completion before any fu

Re: Order of Execution in KeyedBroadcastProcessFunction

2023-09-10 Thread David Anderson
In Flink, all user functions, including KeyedBroadcastProcessFunction, are (effectively) single threaded, so the processBroadcastElement method will run to completion before any further messages are processed in the processElement method. (I said "effectively" because in the case of processing time

Order of Execution in KeyedBroadcastProcessFunction

2023-09-07 Thread Anil K
Hi, I am new to flink. I am trying to write a job that updates the Keyed State when a Broadcast Message is received in KeyedBroadcastProcessFunction. I was wondering will the *ctx.applyToKeyedState* in the processBroadCastElement will get completed before further messages are processed in the *pro