Node.js TCP App Development on ECS

See the original posting on DZone Python

To start with the basics, one of the popular open source JavaScript runtime environments is Node.js. Node is built on Chrome’s V8 JavaScript engine. Node.js is mostly used for building server-side and networking applications. TCP (Transmission Control Protocol) is a networking protocol that enables reliable, ordered, and error-checked delivery of a stream of data between applications. For both sides to exchange data streams, a TCP server must accept a TCP connection request, and the connection is then established.

We can write two types of TCP socket programs: server and client. The server’s function is to listen for connections from the client and then send the processed data back. This communication happens via sockets.