I have developed a login page which needs to access the database for login information. I have put all the user authentication functions in my DAO class which is a singletone class
class DAO { //DAO is a singletone class
public boolean authenticateUser(username,password) {
//authentication process done here
}
}
Whenever the user presses the Login button, the form submits to the server and I have written this code to check the authenticity using DAO class
DAO loginChecker = DAO.getInstance();
boolean validUser = loginChecker.authenticateUser(username,password);
Now my question is, can this design handle hundreds of simultaneous user logins?? because DAO seems to be running in a single thread. If not, could you suggest me some ideas about how to design this DAO class so that it can handle many simultaneous user logins??
Thanks.