Alimei’s Guide:At present, the R & D and operation and maintenance mode of mobile Internet business is divided between cloud and multi-terminal. Some full stack explorations lack successful cases. The industry’s integrated R & D of cloud is still blank. We need to think about how to achieve a fast implementation of R & D support cloud + Android + IOS three-terminal business? Is there a new R & D operation and maintenance mode to let programmers return to programs? “Code once, run everywhere” is our answer. We verified in the idle fish project that the original 60 day project time was reduced by 20 days, with 33% improvement. I hope that the analysis of sun Qi, a senior technical expert from Ali, can bring benefits to you.
Evolution of business R & D mode
Efficiency is the core driving force of business R & D operation and maintenance mode evolution
In the era of PC Internet, single application includes the initial R & D mode (Taobao experienced developers writing velocity templates, and earlier JSP and ASP pages). Its essence is the centralized R & D model of taking the train.
Photo source: http://www.hsrb.com.cn/a/news/guonw/2018/0201/172694.html
With the rapid increase of business development complexity, the delivery mode of catching the train has greatly limited the business development, so the service-oriented split has been born. Taobao’s wucaishi project in 2009 is based on this background. Microservice is a software architecture, which is also a change of research and development mode, from the centralized R & D mode to the distributed R & D mode.
At the same time of upgrading the business distributed R & D mode, the front-end and back-end separated R & D mode is also evolving synchronously. From Ajax to professional front-end, the business closed-loop is completed independently, and the division of work is refined to improve efficiency. However, for the front-end students, the operation and maintenance of the server has always been a painful technical threshold, and has not been well solved in the Java based Middleware ecosystem of Alibaba.
In the era of mobile Internet, clients have also experienced the same evolution. Alibaba Group has implemented the end-to-end distributed R & D mode with atlas. However, compared with the front and back end separation in the PC era, the mobile era has returned to the Ajax mode. The students at the end are only responsible for the end, without realizing the business self closing loop. At the same time, the mobile Internet brings new challenges, that is, cross Android and IOS platforms. React native, weex and other products are born in this environment.
The core challenge of cloud integrated lightweight R & D mode
How to make the client students take a further step to realize the closed-loop ability of business landing, and avoid the research and development, operation and maintenance of the BFF layer for the client students and face the group’s Java technology middleware ecology in cross language, the key is:
- Shielding code operation environment for business R & D
- Cross cloud, end multi platform capabilities
The initial success of the Java language, “compile once, run everywhere” is the key, shielding part of the running environment at the JVM level; how to provide a language independent transparent code running environment for R & D is the core challenge, and everything except business code is managed by the technical platform.
For so many years, the cloud and the end of the mobile Internet are still fragmented R & D models, and the industry also has a full stack of exploration, but there are no very successful cases. The problem is that the technical threshold is too high, too much is needed for developers, and there is no essential change in the complexity of business landing. The original three people do things simply by one person, lacking an effective cross Platform capabilities, especially cross cloud + end platform capabilities.
The essence of the evolution of R & D mode: reduce the technical threshold and cross platform capability.
“Code once, run everywhere”
Letting developers only focus on business logic coding is the new next stage of R & D mode and the essence of R & D mode evolution. At this stage, the technologies represented by cloud native give us a lot of input. Through the container technology to decouple the infrastructure, the container arrangement reduces the complexity of operation and maintenance; through the service grid, the application and middleware system are decoupled; the immutable infrastructure supports higher consistency and reliability, and reduces the complexity; the concept of serverless, the evolution of technology is R & D The mode upgrade provides new opportunities.
Exploration and practice of light R & D operation and maintenance mode of Gaia business
Based on this background, Gaia should be born with pregnancy. It closely cooperates with two major businesses, i.e. idle fish and aplatform Taoshi interactive platform. Through Gaia’s cloud based FAAS technology capability, it redefines the responsibility and boundary of R & D, enables programmers to return to the original program, and realizes the light-weight business R & D and operation and maintenance mode of cloud integration with the cross platform on the end.
The new R & D mode of idle fish is as follows:
In the case of idle fish business, through the cloud integrated R & D mode, the original 60 day project time is reduced by 20 days, with 33% improvement.
- 88 VIP interactive aplatform, hundreds of thousands of QPS business flow stable and reliable operation, the first large-scale verification of lightweight composite multi container design mode of the group.
Gaia design concept
Through the containerized design mode, the infrastructure sink is decoupled from the business, and the code running environment is transparent to the business.
Lightweight composite multi container design pattern
At present, our applications are still in the rich container mode. The important problem is that the responsibilities of containers are not single, resulting in isolation and close coupling between business and infrastructure.
As the key of Gaia, the design mode of container has undergone a revolutionary upgrade, which is also the first large-scale attempt of the group.
- Based on k8s’s lightweight composite multi container capability, the boundary between business and infrastructure is redefined, and infrastructure is hosted by sidecar;
- Through the arrangement and scheduling of containers, resources, traffic and container life cycle can be unified to lay the foundation for on-demand use;
- Based on configmap, realize the decoupling of configuration and environment, realize the immutability of container image, unify the daily, pre sent and production image, and reduce the complexity;
- Based on init container technology, function business and infrastructure are completely decoupled, and function + infrastructure is combined to build operation state through container life cycle initialization mechanism to provide support for independent operation and maintenance of business function and infrastructure;
- API service registration discovery and other infrastructure capabilities sink to k8s technology system.
Through the design ability of these containers, business R & D only needs to write business logic code. At the same time, through the declarative API, it quickly completes the landing ability of cloud business. Containers such as mobile terminal and small program also encapsulate the operation environment of isolated business. The same is true of flutter. The R & D personnel enter into container oriented programming, isolate infrastructure and shield through containers Differences in operating environment platforms.
Gaia is an open platform. According to its container design specification, free fish should implement the function container for dart language according to the specification. The successful docking of aplatform engine and Gaia Java container solves the platform application and any application’s serverless solution path based on Gaia.
Summary and Prospect
At present, the practice of interaction between Gaia and free fish and aplatform is a significant exploration of definition, “once coding, running everywhere” to let programmers return to programs. At present, the cloud technology is a preliminary combination, and the future of system mining construction remains to be further explored
- Business lightweight R & D and operation mode is an unstoppable future
It’s a big event in the world. The division of time, the combination of time, the division of time, the division of time, the division of time, the coming of 5g Internet of all things. A variety of terminal devices need the support of lightweight R & D operation and maintenance mode. Starting from the essence of “reducing the technical threshold and cross platform capability” driving the evolution of R & D mode, the efficient business landing capability is the king. The current multi-terminal multi person cooperation mode of cloud + IOS + Android will be phased out.
- Container oriented, unified API service programming
The containerization of cloud and end operation environment is the only way to decouple business and infrastructure. It isolates the operation environment through containerization encapsulation and interacts through the unified API service interface provided by the container. The technology of cloud and end container will converge and the containers at both ends will interact closely. The deeper combination of cloud and end technology system will realize the closed-loop of cloud technology system.
- Unified engineering system, unified release and upgrade of client and server
At present, the fragmented R & D mode is typically represented by multiple code branches; the business cloud integration lightweight R & D mode, the business engineering system will be the same in the cloud, in a project, define the service interface, realize the service penetration in the cloud container, and realize the service invocation in the customer container; at the same time, the cloud and the end will release the unified version of the operation and maintenance system, Here we need to redefine the whole R & D model system.
- Change of organizational structure of Technology Department
With the change of people’s requirements, the organizational production relationship supporting the business will be upgraded.
“Innovation of R & D mode and reconstruction of R & D ecology.”
“One time coding, running everywhere”, business cloud integration lightweight R & D operation and maintenance mode, waiting for us to build together.
Author: Sun Qi (Kong Meng)
Read the original text
This article is from alitech, a partner of yunqi community. If you need to reprint it, please contact the original author.