🔄Update: 计算机网络

This commit is contained in:
2025-09-29 19:25:22 +08:00
parent 872972e2c4
commit ccc90d9c8d
7 changed files with 167 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# 轮询 vs 长轮询
- 轮询
- `Polling`
- 客户端定期向服务器发送请求,查询是否有新数据
- 弊端
- 增加冗余网络请求
- 长轮询
- `Long Pollong`
- 客户端请求后,服务端保持连接
- 有新数据后返回响应
- 客户端继续发起新请求
- 好处
- 高效
- 接近实时通讯