当前位置:网站首页>2022-2-14 learning xiangniuke project - Session Management
2022-2-14 learning xiangniuke project - Session Management
2022-07-03 09:10:00 【weixin_ thirty-seven million six hundred and eighty-two thousan】


HTTP Cookies Can solve stateless problems .
take Cookies Add to HTTP Head , Create a session , Let each request share the same context information

Try to make the server remember the browser , The server gives the browser a cookie, The next browser request will bring cookies Send to the server 
demonstration cookie How to send the server to the client 





function session/get


session advantage , Save to server , Security , shortcoming , The server is under a lot of pressure
Generally speaking , As far as possible with cookie

viscosity session, Each tour , Always visit and keep it sessionID Server for , problem : Unbalanced load
Session Sync , Whenever a server is created SessionID, Sync to other servers ,
problem : Spending big , Large coupling
share session, A certain server , Dedicated to storage session, When other servers need to get session when , Access to the server
problem : If responsible for storage session My server is down
Put it in the database , Perform cluster backup .
problem : Read database , Slow speed
Final plan : Put in redis in
边栏推荐
猜你喜欢

Install third-party libraries such as Jieba under Anaconda pytorch
![[point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks](/img/ea/2c4336ee929c26c16627e5c0955704.png)
[point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks

【点云处理之论文狂读前沿版10】—— MVTN: Multi-View Transformation Network for 3D Shape Recognition

AcWing 787. Merge sort (template)

Arbre DP acwing 285. Un bal sans patron.

LeetCode 1089. Duplicate zero

教育信息化步入2.0,看看JNPF如何帮助教师减负,提高效率?

LeetCode 57. Insert interval

状态压缩DP AcWing 291. 蒙德里安的梦想

AcWing 788. Number of pairs in reverse order
随机推荐
Tree DP acwing 285 A dance without a boss
教育信息化步入2.0,看看JNPF如何帮助教师减负,提高效率?
LeetCode 871. 最低加油次数
Excel is not as good as jnpf form for 3 minutes in an hour. Leaders must praise it when making reports like this!
LeetCode 438. 找到字符串中所有字母异位词
Format - C language project sub file
传统企业数字化转型需要经过哪几个阶段?
LeetCode 515. Find the maximum value in each tree row
网络安全必会的基础知识
LeetCode 535. TinyURL 的加密与解密
【点云处理之论文狂读前沿版10】—— MVTN: Multi-View Transformation Network for 3D Shape Recognition
How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
LeetCode 57. Insert interval
Sword finger offer II 091 Paint the house
一个优秀速开发框架是什么样的?
Get the link behind? Parameter value after question mark
Using variables in sed command
cres
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition