The scenario is as follows. The service module and the web module in dubbo are two services. If you want to get the session in the service module, how do you get it? The web module can easily get the session because it has HttpServletRequest, but what does the service module need to do to get the session? ? After looking at spring session, the principle is to use redis to store the session, but after searching for a long time, I finally couldn’t find a specific method on how to obtain the session in the service of the service module
See if this helps: http://www.roncoo.com/course/...
You can get the request
This generally serializes the Session object and stores it in the cache. In addition, it can perform single sign-on business on a separate layer and provide an API for querying the Session (digression: this belongs to Session storage in the microservice architecture) Regarding the design of synchronization, I don’t know if the technical manager didn’t explain it clearly to you)