Skip to content

Commit

Permalink
add upstream.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXiaofeng committed Nov 5, 2020
1 parent 5c299ef commit a2398cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ _book
*.epub
*.mobi
*.pdf

# System
.DS_Store
Binary file added code/images/upstream.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions code/upstream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 前言(为什么会写这篇文章)
本人之前是个API网关小白, 因近期在做API网关相关的开发工作,所以找到了业界最火最牛逼的Apisix, 研读了比较感兴趣的小部分的源码及核心组件的设计思路,受益颇多。 每当遇到疑惑时,@院生老师和@厉辉老师总是会耐心的为我们解惑,在此我深表感谢。 某人曾说过:“高效学习的关键在于知识的输出与分享”, 然从院生老师那了解到厉辉(yousa)老师正在写一本关于apisix的书籍,故加入到了这个开源项目,那么接下来将把之前学习到的东西陆续的输出到这里。

---
## 这篇文章主要为大家讲解Apisix是如何获取upstream等信息的。
在讲核心代码之前,我们还是从源头开始,也就是在_M.http_init_worker(init.lua)阶段对upstream的初始化工作,

0 comments on commit a2398cb

Please sign in to comment.