I want to port an existing app from Java to Node.js - would like to seek your advise.
The java app is a multithreaded socket server where arbitrary number of clients can connect. The app runs on java executors. Each client is given a socket to connect to the app.
The client will connect to the socket server and there will be handshake. After handshake, the data will be transmitted between the client and server. The data transferred is in sequential order because the client sends the data over as such. And I.m able to control the thread that the client is connected on.
Now, Node.js does not have threads so I am confused on how to port the multithreaded Java socket server over. Any ideas?