Skip to content
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

开发基于 Envoy 的高性能服务网关 #7

Open
wweir opened this issue Oct 30, 2018 · 3 comments
Open

开发基于 Envoy 的高性能服务网关 #7

wweir opened this issue Oct 30, 2018 · 3 comments

Comments

@wweir
Copy link
Owner

wweir commented Oct 30, 2018

https://wweir.cc/post/开发基于-envoy-的高性能服务网关/

@spacewander
Copy link

Envoy 自身由 C++ 写成,同时使用了优良的架构,单实例性能远超 nginx 之类兼职的网关。

这个我很好奇,Nginx 是用 C 写的,和 Envoy 一样都是事件驱动 IO,为何 Envoy 的单实例性能远超 Nginx?

@wweir
Copy link
Owner Author

wweir commented Feb 2, 2019

@spacewander 术业有专攻,Nginx 的本职是 web server,网关是后期推演出来的需求。相比 Envoy 这种专为网关场景而生的软件,Nginx 中夹杂了太多必要的、不必要代码,想实现同样的功能,二者的代价与成本是不一样的。
在理论上说得再多都是假的,要证明 Envoy 和 Nginx 谁快,需要放到一定的场景中,拿出一定的 bench 数据来比较。这个我没有自己实际测过,不过网上已经有不少测试数据了。

@spacewander
Copy link

spacewander commented Feb 2, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants