Nginx+Tomcat+Memcached load balancing realizes Session sharing
The last time I talked about Alibaba Cloud Linux Nginx integrates Tomcat to realize load balancing cluster just simply realizes load balancing and does not realize session sharing. 1. Description Our system often saves user login information. There is a COOKIE and Session mechanism. The COOKIE client stores user information, and the Session is in The server saves user information. If the browser does not support COOKIE or the user disables the COOKIE, the COOKIE will not be used. There are also different browsers that save the COOKIE in different ways, so we use the Session server to save it. In the previous section we We have introduced the deployment of Tomcat cluster. How can Tomcat in the cluster obtain the user information stored in the Session for the same user request, and use Memcached to manage the Session. Memcached is a high-performance distributed memory object caching system. Next we Introduce Nginx+Tomcat+Memcached to realize Session sharing. two. Tomcat, Nginx, Memcached configuration The first step: Memcached installation and deployment Memcached deployment Check out this article Step 2: Installation and deployment of Nginx Check out this article Step 3: Tomcat and JDK installation and environment configuration Tomcat and JDK installation and deployment…