Introduction: Nacos ali cloud native as a whole has three core elements in their strategic, we in 2018 on the basis of Configserver/VIPServer/Diamond by Nacos open source output ali ten years precipitate the registry and configuration of center, and quickly became the preferred country. And the solution capability is exported in BaaS mode through the cloud product MSE.
Author: Yan Lin (Li Yanlin), Nacos PMC, Founder of Ali Cloud MSE product, head of Ali Cloud soft load team.
Ali cloud original trinity strategy interpretation
Alibaba integrates open source, self-research and commercialized technology. It supports Alibaba Group’s shangyun with public cloud, makes internal expansion based on open source and makes internal customization based on commercialization. BaaS on the backend, lightweight on the client, Serverless on the service side.
Nacos ali cloud native as a whole has three core elements in their strategic, we in 2018 on the basis of Configserver/VIPServer/Diamond by Nacos open source output ali ten years precipitate the registry and configuration of center, and quickly became the preferred country. And the solution capability is exported in BaaS mode through the cloud product MSE.
In the past three years, Nacos has created a complete cloud native technology ecology, which has become the de facto standard in China. It also promotes open construction through the community, refines product performance and availability through Ali’s enrichment of products, and creates product ultimate experience and safer product capabilities through commercialization to meet the production requirements of enterprise users. Thus fully temper Nacos in all dimensions of the ability to continue to enhance the cycle of product competitiveness! Next, I will share more in-depth from the three dimensions of open source, self-research and commercialization.
Nacos Ecology & Planning
Nacos ecological
Nacos supports almost all major languages, among which Java/Golang/Python already supports the Nacos2.0 long link protocol, which can maximize the performance of Nacos. Ali micro service DNS (Dubbo+Nacos+ Spring-Cloud-Alibaba /Seata/Sentinel) best practice, is the best solution of Java micro service ecosystem; In addition, Nacos also provides seamless support for technologies that are active in the microservice ecosystem, such as Envoy and Dapr, which enable users to access microservice capabilities more standard.
Nacos planning
Since the release of Nacos 2.0, it has stimulated the vitality of the community with a 10-fold performance improvement, ranking in the Top10 active open source projects in China and becoming the first choice in the industry. As Nacos2.0 matures, the following Nacos 1.x will enter the maintenance state, and Nacos 2.0.x will do the transition from 1.x to 2.x. From version 2.1.0, we will remove the excessive upgrade logic, make the Nacos2.0 code more clean, more excellent performance, and accelerate the speed of plug-in and service grid ecosystem evolution. Interested partners are expected to build together!!
Nacos Ali landing practice
Nacos Ali Million instance microservice architecture
Since Alibaba has developed to a large cluster of millions of instances, in order to improve performance and scalability, we divided Nacos into two clusters, registration center and configuration center, according to functions. It is recommended that companies with more than 10 million instance sizes be split up from the early stage. When deployed together, the cost of operation and deployment is minimal. Unified access is split into two layers according to the traffic gateway and microservice gateway. Tengine is responsible for the traffic gateway, mainly for connection resistance, certificate offloading and weak seven-layer traffic control. Envoy takes care of the microservices gateway section, taking care of service governance, protocol transformation, cross-domain communication scenarios; It is recommended to do two layers over 100W /s, no more than one layer has the best cost performance. In the internationalization business, Ali sinks the service routing and remote live cutting capacity into Sidecar and lands it on a large scale, so as to expand the cluster by Region level through the remote live system.
So far, ali Cloud native gateway, registry and configuration center all unit environment are cut to the public cloud product MSE, and through 99 big promotion verification, and to support this year’s Double 11.
Nacos service discovery practices
With domain to expand business scale and business, big companies will meet basic cross-domain communication problems, the alibaba cloud native gateway through multiple business domains, such as nailing and other group business domains, through the MSE cloud native gateway, through Dubbo3.0 intermodulation Triple agreement, no agreement into consumption, high efficiency, low rt, You can also configure simple route sharding logic through the gateway to improve overall high availability. In the process of Alibaba landing service grid, Istio cannot meet the scale requirements of Alibaba, so the service link is directly connected to the Nacos registry, and the routing rules are connected to the Nacos configuration center through Istio, so that large-scale production landing can be achieved.
Nacos configuration management practices
One of the underlying technologies that Ali was able to promote over coffee was dynamic configuration management + prescenarios (regularly changing rule configurations). As the foundation of dynamic configuration management, Nacos supports the core business of singles’ Day. For example, after Alibaba mixed department quickly delivers a unit environment, it will dynamically push the unit rules and divert them to the new mixed department environment. Before the promotion, it will adjust the log sampling rate rules to prevent excessive logs from affecting system performance.
Nacos solutions
Microservices solutions
Micro Service Engine (MSE) is a one-stop platform for the mainstream open source micro-service ecosystem in the industry.
Users can combine at will in the four modules of registration & configuration center, service framework, cloud native gateway and service governance. They can choose commercial products or self-built products. If they choose all our solutions, they can directly obtain the core competitiveness of Ali which has been accumulated for ten years.
Service grid solutions
Ali Service Grid (ASM for short) is an ISTIO-compatible managed platform for unified management of microservice application traffic.
Nacos users can enter the service grid era directly through the rapid combination of MSE + ASM products. Istio in ASM connects services with Nacos in MSE through standard MCP protocol. MSE service governance is based on ASM traffic governance atomic API for service governance. Our cloud native gateway is also built based on Envoy, so we can control east, west, north, south traffic through Istio standard. And then improve the high availability of the entire micro-service.
Cross-domain communication solution
Generally, large companies have requirements for inter-service communication across business domains, network domains, security domains, and cross-cloud scenarios. MSE cloud native gateway connects to multiple business domains, and almost all users can solve this problem in this way. This mode is universal, controllable, and secure. In a network domain with multiple service intersections and heavy traffic, you can use the nacos-sync component to implement cross-registry service intercommunication. If the cross-domain traffic exceeds 100w/s, you are advised to consider this mode. This mode has high control costs and can be used only when networks are interconnected and protocols are consistent. Of course, many users use multi-registration and multi-subscription to achieve cross-domain communication. In this way, cross-domain communication cannot be controlled, risks cannot be identified, and there is a cost to research and development.
Microservices high availability solution
With the evolution of digitalization, many companies like Alibaba will engage in large-scale promotion activities, such peak traffic may overwhelm the whole system, resulting in huge economic losses. If too many resources are prepared, resources will be wasted. In this scenario, Alibaba’s PTS+MSE+AHAS+ARMS+ACK product combination can be used to press and limit the flow while watching and playing. Full link pressure test was conducted through PTS to simulate user traffic, and traffic limiting was conducted through the cloud native gateway in MSE, and back-end service forwarding was discovered through Nacos. Service availability and service governance were observed through ARMS, and timeout, anomaly and other problems were analyzed through link tracing. To maximize the balance between performance, high availability, and resource utilization.
Remote live solution
For express delivery, government, medical care, finance and other international livelihood fields, business availability requirements are very high, need to have the ability to live in different places. Ali Cloud MSHA provides two modes of multi-live in the same city and multi-live in different places, and MSE is used as the micro-service foundation at the bottom. The MSE provides access to an AZ in a Region, enabling same-city Dr. If a single AZ fails, the MSHA switches traffic to an available AZ for rapid recovery. Regions can communicate with each other through the MSE cloud native gateway to solve the cross-domain access problem caused by uneven service deployment. MSHA controls the traffic through the global gateway. If a Region is unavailable, traffic is cut off from the gateway to restore services.
The original link
This article is the original content of Aliyun and shall not be reproduced without permission.