头图

Author: Dai Xin & Wang Chen

In the microservice scenario, is open source self-construction the fastest, the most economical and the most stable?
Will complexity really become the "fatal wound" of Kubernetes?
Does enterprise application containerization have to pass the "single-plank bridge" of Kubernetes?
Serverless has a single application scenario, which is mostly used in non-core scenarios with simple logic: applets, ETL, scheduled backups, etc. Java microservices are really nowhere in sight?

At the 2021 Yunqi Conference, Alibaba researcher and general manager of Alibaba Cloud Intelligent Cloud Native Application Platform Ding Yu (shu Tong) released a new product positioning and five new product features of the Serverless application engine SAE, giving the above questions Answer.

1.png

From special purpose to general purpose, SAE is naturally suitable for large-scale implementation of enterprise core business

Different from Serverless in the form of FaaS, SAE provides application-oriented UI and API with "application as the center", does not change the application programming model and deployment method, maintains a consistent development and deployment experience for customers on traditional servers, and is convenient Local development and debugging/monitoring greatly reduces the threshold for customers to use Serverless, and can achieve zero transformation and smooth migration of enterprise online applications.

It is precisely because of this that SAE helps Serverless go from dedicated to general purpose, breaking the implementation boundary of Serverless, making Serverless no longer the special pet of front-end full-stack and small programs. Back-end microservices, SaaS services, Internet of Things applications, etc. can also be used. Built on Serverless, it is naturally suitable for the large-scale landing of the core business of the enterprise.

From complex to simple, SAE is naturally suitable for enterprise zero-threshold containerization

Different from open source and self-built microservices, SAE provides a full set of microservice governance capabilities that have been tested on Double 11 out of the box. Customers do not need to consider framework selection, let alone data isolation, distributed transactions, fuse design, current limit degradation, etc. , And there is no need to worry about the limited maintenance of the community and the problem of secondary custom development. Can achieve seamless migration of Spring Cloud/Dubbo zero transformation. On top of open source, we have also enhanced advanced features such as lossless online and offline, service authentication, and full-link grayscale.

SAE also helped users to shield the technical details of K8s, realize zero-threshold containerization of enterprise applications, and embrace K8s without feeling. Provides the ability to automatically build images. In addition to images, WAR/JAR/PHP zip packages and other methods are provided to reduce the threshold for customers to make Docker images. Shield K8s's complex network and storage plug-in adaptations, assign an IP that is interconnected in the VPC for each application instance, and persist data to the storage system. Shield the operation and maintenance upgrade of K8s, and no longer have to worry about the stability risk brought by the K8s version upgrade. K8s is shielded from docking monitoring components and flexible controllers, providing white-screen end-to-end observability and flexible and diverse flexible strategy configuration. Users continue to use the original packaging deployment method and directly enjoy the technical bonus of K8s.

Five new features highlight the new advantages of Severless and extend the new boundary of Serverless

  • Resilience 2.0: The industry’s first hybrid flexible strategy supports the mixed use of timing and index strategies. In terms of open source K8s capabilities, the number of TCP connections is enriched, business indicators such as SLB QPS/RT trigger flexibility, and advanced flexible settings such as expansion and contraction step size and cooling time are supported.
  • Java cold start speed up by 40%: Based on the enhanced AppCDS startup acceleration technology of Alibaba Dragonwell 11, the cache generated during the first startup of the application is saved, and then the application is launched directly through the cache. Compared with the standard OpenJDK, the cold start takes 40% faster.
  • Ultimate deployment efficiency 15s: Based on the bottom-level full-link upgrade, security sandbox container 2.0, image acceleration, etc., it provides an end-to-end 15-second ultimate deployment experience.
  • One-stop PHP application hosting: Support PHP zip package to directly deploy SAE, and provide PHP runtime environment selection and application monitoring capabilities, providing a one-stop PHP application hosting experience.
  • Richer developer tool chain: In addition to developer tools such as Cloudtoolkit, CLI, and VSCode, new support for Terraform and Serverless Devs are added. Based on resource orchestration capabilities, one-click deployment of SAE applications and dependent cloud resources makes environment construction easier.

4 best practices, a model of All on Serverless

Transformation of low-threshold microservice architecture

It is faster, more economical and more stable than open source self-built microservices. With the rapid growth of business, many companies are facing the difficulty of transforming from a single unit to a microservice architecture; or self-built microservices cannot meet the stability and diversified needs of enterprises. With SAE's out-of-the-box full set of microservice capabilities, it reduces customer learning and R&D costs, and has the stability endorsement that has passed the test of Double 11, allowing these companies to quickly complete the microservice architecture transformation and support the rapid launch of new businesses. This is also the most widely used scenario for SAE. It can be said that SAE is the best serverless practice in the microservices field.

One-click start-stop development test environment

There are many environments in medium and large enterprises, and the development, testing, and pre-release environments are often not used 7*24 hours. Long-term application examples are maintained, and idle waste is high. Some enterprises' CPU utilization rates are approaching zero, and the demand for cost reduction is obvious. SAE's one-key start-stop capability has allowed these companies to flexibly release resources on demand. The development and test environment alone can save 2/3 of the machine cost, which is very impressive. Next, we will use K8s orchestration capabilities to orchestrate application and resource dependencies, and initialize a set of environments and clone replication environments with one click.

Full link grayscale

It is stronger than the gray-scale capability provided by the open source K8s ingress. SAE combines the scene characteristics of the PaaS layer customer, not only realizes the seven-layer traffic grayscale of K8s ingress, but also realizes the full-link grayscale from the front-end traffic to the interface and method levels of multiple cascaded microservices. Compared with the original solution, it is more convenient to deploy, operate and maintain. In the past, customers needed to deploy multiple applications in two namespaces and use two complete environments to achieve formal and gray-scale releases, which resulted in high hardware costs and troublesome deployment and maintenance. Based on SAE, customers only need to deploy a set of environments, by configuring some gray-scale rules to access the specified special traffic to a special instance, and cascading down one by one, which not only controls the explosion radius, but also saves hardware costs while being convenient.

Use SAE as a flexible resource pool to optimize resource utilization

Most customers will use SAE in full, and a small number of customers will put the normal part of the same business on the ECS, using SAE as a flexible resource pool, and the two will be deployed in a mixed manner. It is only necessary to ensure that the ECS instance and SAE instance of the same application are mounted to the back end of the same SLB, and the weight ratio is set. Microservice applications also need to be registered in the same registry. In addition, the customer self-built publishing system is reused to ensure that the SAE instance and ECS instance versions are the same every time the version is released. Reuse the customer's self-built monitoring system, send SAE monitoring data to the monitoring system through OpenAPI, and organize the monitoring data of ECS. When the traffic peak comes, the elastic module will bounce all elastic instances to the SAE system, which greatly improves the efficiency of elastic expansion and reduces costs. This set of mixed solutions is also suitable for migrating from ECS mode to SAE, as an intermediate transition plan to further improve the stability of the migration process.

SAE’s 5 new features and 4 best practices break the boundaries of Serverless implementation, make application containerization faster, make K8s implementation easier, and allow container + Serverless + PaaS to be combined into one, making technology advanced, Resource utilization optimization and constant development, operation and maintenance experience can be integrated.


阿里云云原生
1k 声望302 粉丝