I have a remote server that needs to be able to accept multiple simultaneous connections from clients on a specific port. I need the connections to be fast and reliable.
I am planning to use TCPServer on the remote side and TCPSocket on the client side. There’d likely be 200+ connections to the server.
Do we have any known benchmarks in Ruby for a system like this?
Also, do I need to worry about the underlying data multiplexing at socket level or Ruby/OS libraries take care of the same?
Finally, will you folks be able to recommend me any specific links/books that talk about designing systems like this? I googled but books about networking in Ruby seem to be an oddity.
I think you would be better off leveraging EventMachine. It should be pretty fast and efficient.
EDIT: have a look at:
this and this