Experiencing major request/response latency after upgrading a couple rust libraries.
On a very fast actix-web/mongodb service, I upgraded versions of a couple of the libraries.
Major ones are actix-web 3.3.2 (from 2.0.0) and mongodb rust driver to 1.2.0 (from 0.9.2)
A lot of code was updated to swap mongodb 0.9.2's synchronous API with 1.2.0's async API. On the upgraded service, the requests complete successfully but have very high latency.
On 2.0.0/0.9.2, requests are super fast, like less than 50ms
After upgrade, requests take upwards of 4 seconds, some longer.
On 3.3.2/1.2.0, I notice the service is spawning many more mongo db connections compared to previously. Not sure if that's related.