Many thanks for your detailed response Piotr, it helped a lot! BTW, I got similar comments from Arvid Heise here: https://stackoverflow.com/questions/60181678/using-multithreaded-library-within-processfunction-with-callbacks-relying-on-the.
-- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/