Hello! I'm trying to write a server in Java. Server for mobile application, the server should take JSON request, search the database, generate and send JSON response. The essence of the question is that I want to understand how to implement a similar server, say, more than 1000 - 10 ... 000 people? If you can with examples. (Under the server we understand the program which may not be on the same station). So, one thread will contain the following functions: receiving JSON, decoding, search through the database, forming the response and sending it. And for each user, 1 such thread?