I have a system that has a central computer (server) and a group of small computers. These small computers can only communicate (by internet) with the central computer. No communication should be done between these small ones. It is like a master/slave concept with one master and several slaves but the communication is done from/to server to/from slave. Right now I decided to use a thread in the server for each small computer. If I have 10 small computers, 10 threads should be processing at the same time. Also noting that the server also have an application that can be accessed from browser. The information coming from the devices should be processed in the server and delivered to the application on the browser. Now, my doubt is, taking into account I have several small devices is it correct or mandatory to use 1 thread for each device? Or is there a tool that can manage all these connections? I'm using sockets by the way.
Thanks