Spring Boot - How to associate a request with a particular user?

59 Views Asked by At

I have a spring boot application and now i need to return specific information for each user that makes an http request. How can i achieve this? I have to scale this up so multiple instances of the application must be consider. For example.. In the fornt end an user is logged in, for each request this user makes, i have to return his proper information. If another user is logged, and makes a request at the same time, he also gets his own information.

I was thinking that i can achive this by including user id in each request but don´t know if this is the proper way.

0

There are 0 best solutions below