An important part of backend services is the ability to communicate with each other over sockets. Sockets allow one process to communicate with another process through an IP address and port. This can be useful when implementing interprocess communication (IPC) for two different processes running on the same server or accessing a service running on a completely different server. Node.js provides the
net module that allows you to create both socket servers and clients that can connect to socket servers. For secure connections, Node.js provides the
tls module that allows you to implement secure TLS socket servers and clients.
Network sockets are endpoints of communication ...