-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# 经典面试题之当你点击一个网站的时候到底经历了什么步骤 | ||
## 前端部分 | ||
### 浏览器访问 | ||
## 客户端 | ||
点击 `www.baidu.com` -> 查询本地 DNS 缓存系统,没有就查询各级 DNS 服务器 (App 可以直接使用 HTTP DNS 系统) 查询到 ip 地址 -> 通过 ip 地址访问到目标路由器,(可能通过 DNS 查询到多个 ip 地址) -> 进入到交换机中 -> 进入 lvs 系统 -> 进入 API 网关 -> 如果是 web,就开始返回 HTML 给浏览器,进而在 HTML 中点击其他的链接去访问 BAAS 服务,在这个过程中,通常会使用 https 的方式建立一个长链接 (时间较长的连接),这个过程中双方会有协商,交换密钥,使用 io 多路复用等处理方案 | ||
|
||
### APP 访问 | ||
比如在 web 中请求了一个图片,那么这个请求很有可能就是一个 cdn 的请求 | ||
|
||
## 开始进入后端 | ||
## 后端 |