I am working on a distributed web application, and we decided to separate the web module from the business services to make it more scalable.
Here is the situation: We have one server instance that stores the web application (controllers, JSP, etc.) And many server instances with business services. If the web application needs any data, it queries any existing business server through Hessian, then receives a response and displays the data.
We are currently retrieving data from the database based on the registered user, and this cannot be changed, so each server must know which user asked to complete the task.
My question is: Do you know a solution to save a user session in several independent applications?
For example, one of the solutions may send a username with each request, but this is not a good idea for us.
Thank you so much
source
share