头图

The maturity of service meshes continues to improve, and traffic processing in the cloud-native environment becomes more and more important. The Envoy Gateway project was recently announced as open source, "aiming to greatly reduce the threshold for using Envoy as an API gateway", which has attracted industry attention. In November 2018, Envoy became a CNCF graduation project and began to be known to practitioners as a high-performance data and service proxy software. However, in the following two or three years, in domestic API gateway practice, the selection of Envoy is still a relatively lonely road. .

As a pioneer of domestic cloud native practice, NetEase Shufan Qingzhou cloud native team explored the realization of service mesh platform and API gateway based on Istio and Envoy as early as 2017, and completed the mature application of this system in Yanxuan e-commerce business in 2019 . After 6 years of practice, on the enterprise side, NetEase Shufan Envoy Gateway carries the core business traffic of leading enterprises in the Internet, banking, securities, energy and other industries, and has withstood the test of tens of billions of daily traffic; on the community side, the team The Hango Gateway based on Istio and Envoy will be open sourced in 2021, and the only Envoy Maintainer in China will be born in 2022.

In the process, NetEase Shufan has also shared the relevant practices of Envoy Gateway many times, and discussed the technical route of the gateway in 2020 to demonstrate the advantages of Envoy Gateway, and jointly promote and witness the continuous maturity of Envoy with the community. NetEase Shufan believes that the open source of Envoy Gateway has brought a good start for Envoy to become a standard data plane component.

NetEase Shufan Cloud Native Architecture Selects Envoy

In the construction of the cloud native technology system, NetEase Shufan attaches great importance to the unified technology stack, and believes that only in this way can the R&D cost be reduced and the advantages of cloud native be truly brought into play. The grid gateway system chooses Envoy not only because Envoy is the default sidecar on the Istio data plane, but also because it is a "double eugenics" with excellent functions and performance. Since then, the practice of strict selection of business in NetEase has verified the correctness of this choice.

On the grid side, NetEase Shufan believes that Istio + Envoy's good abstraction of microservice traffic and service governance has brought the dawn of a unified service layer technology stack. At the same time, Envoy has a forwarding performance not lower than that of Nginx, but it is much more flexible than Nginx in terms of governance and control capabilities (UDPA). In Netease Yanxuan's test at the time, eBPF/xDP (sockops) was used, and the optimized path was SVC <-> Envoy, and the latency performance was improved by 10-20%.

See:

The upgrade of NetEase Yanxuan Gateway considers the seamless integration of the Qingzhou micro-service system and the implementation of mainstream products. It also uses the Envoy data plane component, which is responsible for the proxy, routing, governance, telemetry, etc. of the north-south data traffic; through filterchain to expand, Supports the writing of plug-ins based on Lua and C++ languages, and supports multi-language expansion after WASM is implemented; and performs dynamic control such as configuration and distribution through xDS and control plane components. The control plane uses Istio Pilot as the basic control plane component, and provides an API layer and console for users or third-party platforms to access.

Based on Qingzhou Envoy Gateway NetEase Yanxuan realized:

  1. The gateway management platform is reused to ensure the consistency of user habits.
  2. LUA plug-ins are reused to facilitate seamless migration of extended functions.
  3. The support of function-level routing capabilities paves the way for subsequent FaaS drainage.

After the implementation of large-scale business production, NetEase Shufan has realized the innate advantages of Envoy, and firmly believes that Envoy Gateway is the standard technical solution for cloud-native business traffic entry:

  1. Richer features than HAProxy and Nginx
  2. Comparable to Nginx, much higher than the performance of traditional API gateways
  3. Strong dynamic management and control capabilities, with the data plane standard xDS protocol
  4. Natural Affinity Container Environment
  5. Multilingual extension sandbox - WASM

In terms of performance, in the test of Netease Shufan, the TPS of Envoy can reach about 12W, while the TPS of Kong based on Nginx is about 5W.

By 2020, Qingzhou Envoy Gateway will be implemented on a large scale in multiple core businesses of NetEase:

  • NetEase Media (News) has realized that the entire site traffic is exposed through the Qingzhou Envoy Gateway
  • NetEase Yanxuan has realized that all traffic of cloud services is exposed through Qingzhou Envoy Gateway
  • NetEase Youdao, Yunxin, Lofter and other NetEase core Internet business traffic are exposed through Qingzhou Envoy Gateway

See:

Hango Open Source, Enter CNCF Landscape

In August 2021, NetEase Shufan open sourced Hango, a high-performance, scalable, and feature-rich cloud-native API gateway, and then comprehensively interprets Envoy technology in terms of functionality, performance, industry impact, technology trends, and best practices. The advantages of the route, as well as the extended design and landing practice of Hango.

In short, the data plane of Hango is extended based on Envoy to enhance the plug-in chain, and the control plane is extended based on Istio, and supports multi-scenario capabilities such as microservice gateway, seven-layer load balancing, and Kubernetes Ingress. The following is the data flow of the Hango gateway plug-in chain. By creating an EnvoyPlugin CR, Slime dynamically monitors and aggregates to generate the corresponding EnvoyFilter to complete the dynamic expansion of the Envoy filter chain.

And Hango has also been recognized by cloud native practitioners and entered CNCF Landscape.

See:

Looking forward to the future, NetEase Shufan is committed to expanding the "out-of-the-circle" scale of the Qingzhou cloud native system and integrating it into industrial digitization. As a core module, the Qingzhou Envoy Gateway will also increase the landing capabilities of industrial application scenarios , such as multi-cluster high availability, protocol conversion and other financial scenarios Enhancement of just-needed capabilities. At the same time, more capabilities of Qingzhou Envoy Gateway will be open sourced through Hango Gateway.

Continue to contribute, the only Maintainer in China is released

At present, the NetEase Shufan Qingzhou team has contributed 60+ PRs and more than 14,000+ new codes to the Envoy community, covering core functions such as Envoy's stateful session retention, enhanced tracing capabilities, Lua script support, and enhanced Dubbo governance capabilities.

In March 2022, the Envoy community invited Wang Baiping, a cloud native expert and senior architect of NetEase Shufan, to become the community Maintainer - this is the first and only Envoy Maintainer in China, and is also a Dubbo Extension Senior Maintainer, indicating that the community continues to contribute to NetEase Shufan 's approval.

See:

Envoy Maintainer Helps Unlock New Envoy Skills

Before becoming an Envoy Maintainer, Wang Baiping also actively interpreted the development of Envoy technology and related practices including Envoy Gateway through articles, live broadcasts, and offline sharing.

See:

Finally, readers and friends are welcome to actively participate in the Envoy and Hango communities to create a cloud-native future.


From May 13th to June 15th, 2022, the Loggie community launched the Loggie Geek Camp open source collaboration event for cloud native, observability and log technology enthusiasts. Feel the essence of open source culture and the creativity of the open source community to create the future of cloud-native observability. It includes four types of tasks, including providing user cases, catching bugs, improving and submitting features. The submitted content is considered a success if it passes the community review. Those who perform well will be commended by NetEase Shufan and the Loggie community . Welcome to visit the link to learn and participate: https://sf.163.com/loggie


网易数帆
391 声望550 粉丝

网易数智旗下全链路大数据生产力平台,聚焦全链路数据开发、治理及分析,为企业量身打造稳定、可控、创新的数据生产力平台,服务“看数”、“管数”、“用数”等业务场景,盘活数据资产,释放数据价值。