New Connection Each Time I do Something

Trying to work with MongoDB async with Runnables.

However, every time I execute a query inside the runnable it opens a new connection. Is there any conventional way to solve this?

[06:59:00 INFO]: Opened connection [connectionId{localValue:25, serverValue:505063}] to mc-shard-00-02.ncrmn.mongodb.net:27017

Most likely the issue lies in the Runnables.

Please share your code so that we can help you find out what is wrong. Since you are new to this forum, please read Formatting code and log snippets in posts before posting your code.