当前位置:网站首页>websocket学习
websocket学习
2022-06-24 19:42:00 【@来杯咖啡】
参考资料:
理论基础-
socketio是websocket的一个库,对原生的websocket进行了封装。
不要只考虑到单机,我们实际机器都是【集群】部署。那么我们需要考虑 - 客户端与服务端的连接应该存在哪里??
1、通过ip-hash进行分配;
2、通过redis等缓存数据库统一管理;
3、客户端自己携带;-- 不符合此场景。如果只是做个登录认证,倒是可以借助jwt可以在客户端自己携带token。
边栏推荐
- Theoretical analysis of countermeasure training: adaptive step size fast countermeasure training
- Accounting standards for business enterprises application [5]
- 【nvm】
- Research Report on research and investment prospects of China's container coating industry (2022 Edition)
- 02_SpingBoot 入门案例
- Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)
- Concurrent shared model management
- 文件包含漏洞问题
- gocolly-手册
- [untitled]
猜你喜欢

Solution to the login error of tangdou people

Case analysis: using "measurement" to improve enterprise R & D efficiency | ones talk

The extra points and sharp tools are worthy of the trust | know that Chuangyu won the letter of thanks from the defense side of the attack and defense drill!

03_SpingBoot 核心配置文件

Tech talk activity review kubernetes skills of cloud native Devops
![[untitled]](/img/ed/847e678e5a652da74d04722bbd99ff.jpg)
[untitled]

vulnhub DC: 2

非单文件组件

Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧

Concurrent shared model management
随机推荐
【js】-【字符串-应用】- 学习笔记
China solar window market trend report, technical dynamic innovation and market forecast
Financial management [3]
Sword finger offer 42 Maximum sum of successive subarrays
docker安装redis-简单而无坑
【nvm】
Financial management [2]
剑指 Offer 42. 连续子数组的最大和
03_ Spingboot core profile
Push markdown format information to the nailing robot
shopee开店入驻流水如何提交?
Accounting standards for business enterprises application [5]
EPICS记录参考3 -- 所有记录都有的字段
Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
Laravel add helper file
gocolly-手册
[ROS play with turtle turtle]
01_SpingBoot 框架入门
2022年高压电工考试模拟100题及在线模拟考试
Uip1.0 active sending problem understanding