Configuring mongodb node.js driver to use instant compression

We recently upgraded our MongoDB replica installed to v3.4.4; I notice that this version now supports instant network communication. I have members set up to enable this, so they communicate with each other that way, and the mongo shell seems to support it natively, but I can't find any documentation on how to set up our Node. js clients to use it.

This still works great, of course, since uncompressed communications are used where the client and server cannot agree on a compression protocol, but it would be nice to take advantage of that for obvious reasons.

Has anyone else played with this or had any luck?

It looks like Mongo has a ticket open but wondered if anyone else had made any progress regardless.

+3


source to share





All Articles