Simply put, my question lies in the title:
Is there a bandwidth/speed limitation with MongoDB? Ideally the insert speeds should come near the file transfer speeds, but it’s 1/3 at best.
Details below.
- Server : MongoDB v4.4 community edition, running on Windows 10 Virtual Machine
- Client : .NET app using v2.11 .NET Mongo Driver
The application has to save 1.22MB of data every 100 milliseconds, more than that causes latencies in my system which is very serious. Without using compression it takes ~140ms, with compression it takes ~80ms but the system runs many services so there could be delays, so even the ~80ms is not enough. With compression the transfer speed is ~15MBps at best, but the maximal transfer speed I achieved (using a file transfer to the mongo server computer) gave 50MBps.
Moreover, I checked the bandwidth using simple client-server python scripts (on the same Mongo service port), I received a 30MBps transfer speed for transferring 2MB (Which is more than the data I’m required to insert uncompressed) in a while loop . Each send took ~2ms.
I would like some insights if you have any.
Thanks.