Євген Шепелюк
03/27/2024, 9:42 AMSeungMin Lee
03/27/2024, 9:54 AMЄвген Шепелюк
03/27/2024, 9:56 AMSeungMin Lee
03/27/2024, 9:58 AMЄвген Шепелюк
03/27/2024, 10:09 AMSeungMin Lee
03/27/2024, 10:10 AMЄвген Шепелюк
03/27/2024, 10:12 AMSeungMin Lee
03/27/2024, 10:15 AMSeungMin Lee
03/27/2024, 10:17 AMЄвген Шепелюк
03/27/2024, 10:19 AMMiniClusterWithClientResource ?SeungMin Lee
03/27/2024, 10:25 AMЄвген Шепелюк
03/27/2024, 10:26 AMЄвген Шепелюк
03/27/2024, 10:26 AMЄвген Шепелюк
03/27/2024, 10:35 AMSeungMin Lee
03/27/2024, 10:37 AMЄвген Шепелюк
03/27/2024, 10:40 AMprocess method on BroadcastConnectedStream
returns SingleOutputStreamOperator
public <KEY, OUT> SingleOutputStreamOperator<OUT> process(
final KeyedBroadcastProcessFunction<KEY, IN1, IN2, OUT> function) {
...
}
Not KeyedStream
So, should I keyBy the strem once again ?SeungMin Lee
03/27/2024, 10:46 AMKeyedBroadcastProcessFunction broadcast keyed events to all subtasks with proper order. Could you explain more detail about what you want to do?Євген Шепелюк
03/27/2024, 10:52 AMAAA partitioned by custom key, aka KeyedStream, let's say it's userId
2. Depending on some enrichment condition ( let's say user is from particular country) - I want to emit an additional event into stream AAA
3. To implement "enrichment" logic - I am using broadcast stream BBB
4. So after doing all this - I am noticing that the order of records is lostSeungMin Lee
03/27/2024, 10:55 AMAAA and broadcast stream BBB not guaranteed.
keyed stream only guaranteed the order of keyed events in stream AAA itself.Євген Шепелюк
03/27/2024, 10:56 AMrules of enrichment while AAA contains real events
I assumed if AAA will be keyed when it is conencted to BBB - the order will be kept
and later process steps will respect that orderSeungMin Lee
03/27/2024, 11:00 AMAAA broken at the result?
e.g. stream AAA emits events a1, a2, a3 (Same key a) and results ares like a1, a3, a2?Євген Шепелюк
03/27/2024, 11:04 AMb)SeungMin Lee
03/27/2024, 11:16 AMЄвген Шепелюк
03/27/2024, 11:20 AMЄвген Шепелюк
03/27/2024, 11:21 AMBroadcastProcessFunction
which process both AAA ( events) and BBB ( the rules )
i may want to emit / insert a new "event", i.e. insert into AAA to be processed further