title: Java Servlets: Performance
body: <p>I am working on a web application in Java which gets data from servlets via AJAX calls.</p>
  <p>This application features several page elements which get new data from the server at fairly rapid intervals.</p>
  <p>With a lot of users, the demand on the server has a potential to get fairly high, so I am curious:</p>
  <p><strong>Which approach offers the best performance:</strong></p>
  <p>Many servlets (one for each type of data request)?</p>
  <p><strong>Or:</strong></p>
  <p>a single servlet that can handle all of the requests?</p>