当前位置:网站首页>websocket学习
websocket学习
2022-06-24 19:42:00 【@来杯咖啡】
参考资料:
理论基础-
socketio是websocket的一个库,对原生的websocket进行了封装。
不要只考虑到单机,我们实际机器都是【集群】部署。那么我们需要考虑 - 客户端与服务端的连接应该存在哪里??
1、通过ip-hash进行分配;
2、通过redis等缓存数据库统一管理;
3、客户端自己携带;-- 不符合此场景。如果只是做个登录认证,倒是可以借助jwt可以在客户端自己携带token。
边栏推荐
- How to submit the shopee opening and settlement flow?
- 加分利器 不负所托 | 知道创宇获攻防演练防守方感谢信!
- Selection (029) - what is the output of the following code?
- 2022 simulated 100 questions and simulated examination of high-altitude installation, maintenance and demolition
- laravel 添加helper文件
- Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
- 「ARM 架构」是一种怎样的处理器架构?
- Financial management [1]
- 03_ Spingboot core profile
- MySQL夺命10问,你能坚持到第几问?
猜你喜欢

文件包含漏洞问题

The large-scale market of graduate dormitory! Here comes the enviable graduate dormitory!

【基础知识】~ 半加器 & 全加器

Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)

加分利器 不负所托 | 知道创宇获攻防演练防守方感谢信!

docker安装mysql-简单无坑
How should we measure agile R & D projects?

【js】-【栈、队-应用】-学习笔记
![[postgraduate entrance examination English] prepare for 2023, learn list9 words](/img/2d/9ff691c9ff50fba2df73f726db26f2.jpg)
[postgraduate entrance examination English] prepare for 2023, learn list9 words

Online group chat and dating platform test point
随机推荐
docker安装redis-简单而无坑
Selection (028) - what is the output of the following code?
EPICS record Reference 3 - - field available for all Records
Building Survey [2]
JD 618 conference tablet ranking list announced that the new dark horse brand staff will compete for the top three, learning from Huawei, the leader of domestic products
EPICS记录参考4--所有输入记录都有的字段和所有输出记录都有的字段
Research and investment strategy report on China's bridge anticorrosive coating industry (2022 Edition)
并发之共享模型管程
2022 safety officer-b certificate examination question bank and answers
gocolly-手册
EMI的主要原因-工模电流
记录一下MySql update会锁定哪些范围的数据
Building Survey [3]
Research and investment strategy report on China's nano silver wire conductive film industry (2022 Edition)
Laravel 认证模块 auth
Force deduction solution summary 515- find the maximum value in each tree row
Laravel message queue
Accounting standards for business enterprises application [5]
慕思股份深交所上市:靠床垫和“洋老头”走红 市值224亿
[text data mining] Chinese named entity recognition: HMM model +bilstm_ CRF model (pytoch) [research and experimental analysis]