大家過(guò)來(lái)談?wù)?分布式session的存儲(chǔ)問(wèn)題?
到網(wǎng)上搜索,結(jié)果如下:
互聯(lián)網(wǎng)分布式應(yīng)用集中式session的實(shí)現(xiàn)方式?
http://www.zhihu.com/question/20130010
對(duì)這方面有經(jīng)驗(yàn)的朋友談?wù)剬?shí)戰(zhàn)經(jīng)驗(yàn),謝謝。
閉關(guān)修行中......
My experience is that the browser cannot support SESSION once it is closed...
http://www.open-open.com/lib/view/open1326513753155.html
http://tendyming.iteye.com/blog/1815136
I'm just moving the bricks, my moral skills are too low, I'll wait for the experts to discuss
The common solutions are roughly divided into three types
1. Ensure that each user accesses the same server
2. Save all sessions in a public place, or have all sessions on each server
3. Bring the session back to the client, and bring it back to the server every time you visit
nginx
做負(fù)載均衡器,使用iphash
進(jìn)行分流,可以保證每個(gè)用戶每次訪問(wèn)都是統(tǒng)一服務(wù)器,也就不存在session
Distributed problem.