当前位置:网站首页>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
边栏推荐
- [point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
- LeetCode 535. Encryption and decryption of tinyurl
- 低代码起势,这款信息管理系统开发神器,你值得拥有!
- 【点云处理之论文狂读经典版7】—— Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs
- Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)
- 拯救剧荒,程序员最爱看的高分美剧TOP10
- LeetCode 535. TinyURL 的加密与解密
- Noip 2002 popularity group selection number
- cres
- LeetCode 30. 串联所有单词的子串
猜你喜欢
LeetCode 438. Find all letter ectopic words in the string
2022-2-13 learn the imitation Niuke project - Project debugging skills
On a un nom en commun, maître XX.
Discussion on enterprise informatization construction
我們有個共同的名字,XX工
浅谈企业信息化建设
2022-1-6 Niuke net brush sword finger offer
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
Install third-party libraries such as Jieba under Anaconda pytorch
常见渗透测试靶场
随机推荐
教育信息化步入2.0,看看JNPF如何帮助教师减负,提高效率?
What is an excellent fast development framework like?
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)
求组合数 AcWing 885. 求组合数 I
Discussion on enterprise informatization construction
【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
C language file reading and writing
Using DLV to analyze the high CPU consumption of golang process
AcWing 786. Number k
数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
Excel is not as good as jnpf form for 3 minutes in an hour. Leaders must praise it when making reports like this!
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
Summary of methods for counting the number of file lines in shell scripts
干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了
【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
too many open files解决方案
We have a common name, XX Gong
LeetCode 241. Design priorities for operational expressions
cres