https://blog.stackademic.com/apache-flink-real-time-stream-processing-with-stateful-functions-8ce687966fa4