node.jsmongodbnetwork-protocolsmongojs

Node.js mongojs mongoDB internet layer


I have looked everywhere, cannot find what protocol the mongojs uses for connecting with the mongodb. Can anyone show me some doc's that specify if its UDP or TCP/IP or HTTP


Solution

  • MongoDB talks over TCP sockets. From the docs:

    The MongoDB Wire Protocol is a simple socket-based, request-response style protocol. Clients communicate with the database server through a regular TCP/IP socket.