I am using the mongo crate at https://crates.io/crates/mongodb.
In my application, I have multiple functions that need a mongo connection. The functions run in their own thread and create their own mongo connection.
I create a mongo connection for main(), then call spawn threads that call those functions.Looking at the mongo stats, I end up with > 1000 connections.
I have looked at the documentation for mongodb crate and I didn’t find any info on performance.
Does anyone here have experience with similar situation?