MongoDB Drivers and Network Compression
dev.to·3h·
Discuss: DEV
Flag this post

MongoDB’s drivers communicate with a MongoDB process using the Wire Protocol, which is a simple socket-based, request-response style protocol that primarily uses the OP_MSG opcode (though prior to MongoDB 6.0 there were a number of addition legacy opcodes). Since the contents of OP_MSG messages was uncompressed, starting with MongoDB 3.4 a new opcode was introduced that would enable the Wire Protocol to support compressed messages as well: [OP_COMPRESSED](https://www.mongodb.com…

Similar Posts

Loading similar posts...