I am working on a Java web application that receives data from servlets through AJAX calls.
This application contains several page elements that receive quick requests for new data from the server.
With a large number of users, the demand on the server can become quite high, so I wonder:
Which approach provides the best performance:
Many servlets (one for each type of data request)?
Or:
one servlet that can handle all requests?
source share