82

使用Spring Session和Redis解决分布式Session跨域共享问题-java高级IT的博客

 5 years ago
source link: http://blog.51cto.com/13792737/2155953
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
对于分布式使用Nginx+Tomcat实现负载均衡,最常用的均衡算法有IP_Hash、轮训、根据权重、随机等。不管对于哪一种负载均衡算法,由于Nginx对不同的请求分发到某一个Tomcat,Tomcat在运行的时候分别是不同的容器里,因此会出现session不同步或者丢失的问题。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK