I would disable it if possible and use the Flink parallism. The threading might work but can create operational issues depending on how you configure your resource manager.
> On 23. Apr 2018, at 11:54, Alexander Smirnov <alexander.smirn...@gmail.com> > wrote: > > Hi, > > I have a co-flatmap function which reads data from external DB on specific > events. > The API for the DB layer is homegrown and it uses multiple threads to speed > up reading. > > Can it cause any problems if I use the multithreading API in the flatmap1 > function? Is it allowed in Flink? > > Or, maybe I should employ better approaches for that. May be async I/O? > > Thank you, > Alex