-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019-08-05:谈谈如何对网络请求进行优化? #114
Comments
三级缓存?网络,内存,缓存? |
最开始的是DNS,当我们发起一个网络请求,首先要经过DNS服务,将域名转化为IP地址,然后通过IP地址建立连接,DNS解析过慢??所以这可以是一个切入点; 其次Gzip 然后涉及到图片上传(避免整文件传输,采用分片传输; |
1.为避免DNS解析异常问题,可以直接使用 IP 建立连接; |
1.最开始的是DNS,当我们发起一个网络请求,首先要经过DNS服务,将域名转化为IP地址,为避免DNS解析异常问题,可以直接使用 IP 建立连接; |
搬个小板凳 听大佬们回答 |
IP直接连接,那么https怎么办 |
|
|
关于这个问题,上面已经有一些客官回答的比较好了,我这里做一个补充 1、尽量避免使用多个不同的域名:域名需要通过DNS服务解析成IP,域名过多会浪费时间(当然了DNS会有缓存) |
No description provided.
The text was updated successfully, but these errors were encountered: