In which scenario BroadcastConnectedStream in flink is really helpful?
A small example with clarification would be helpful.
I've written some examples that you can find here:
In general, broadcast state is useful whenever you need to communicate something throughout the entire cluster. Most data sources are going to be partitioned, so that they can be processed in parallel by separate instances -- but some information is needed globally, like currency exchange rates, or thresholds, or machine learning models. If that globally useful data is static, you can simply load it from a file, but if it needs to be updated dynamically during runtime, then using a broadcast stream makes sense.