https://bigdataschool.ru/blog/keyed-states-in-flink-stateful-apps.html
Управление состояниями в Apache Flink: краткий ликбез