I\'m writing a Java server which uses plain sockets to accept connections from clients. I\'m using the fairly simple model where each connection has its own thread reading f
It is possible this will scale to thousands of clients. But how many thousands is the next question.
A common alternative is to use Selectors and non-blocking I/O found in the java.nio package.
Eventually you get into the question of whether it's useful to set up your server in a clustered configuration, balancing the load over multiple physical machines.