I am building a web application using Java to do my server side processing. Currently when I make an ajax request from the frontend, it calls a servlet, which then creates an object of a class, which has a list of methods I call.
Is there a better way to achieve this so that I dont have to instantiate an object every time I make a request? I.e is there a way to cache the object instance?