Related Blog

Using Kubernetes to Realize Microservice Product

by Yang Peng
Operations

2021-12-03

The development of various distributed systems from more than ten years to the current container cloud, from the support of the original business to the incubation of the new business, the development of the enterprise is inseparable from the unified, with the times of the technology architecture. With the application of the service-oriented architecture to the use of k8s (Kubnates), the micro-smart card implements the Service Mesh and introduces a new generation of payment cloud (PayCloud) products.

In the early days, the applications running on K8s were mostly development applications, while now more and more enterprise core business and data intelligence business and innovation business are also running on K8s. Take the example of the new generation of PayCloud products, including open gateways, core systems, component services, monitoring platforms and so on, all transplanted to the K8s cluster environment to enjoy the agility, resilience and portability it brings.

With the development of the Internet, especially the arrival of the mobile interconnection era, the economic form of the whole world has changed greatly. The focus of the enterprise IT is evolving from the traditional System of Record (e.g., the transaction system) to the System of Engagement (e.g., PayCloud).

Netflix, a series of Internet companies led by Alibaba, led the new change in the enterprise architecture-the micro-service architecture. The micro-service framework, such as Apache Dubobo, Spring Cloud, has been widely used. The core idea of the micro-service is to apply the function splitting and decoupling to reduce the complexity of the service system. The micro-service emphasizes that the application function is disassembled into a set of loosely coupled services, each of which follows a single liability principle. The micro-service architecture addresses several inherent problems in the traditional monomeric architecture: each service can be deployed and delivered independently, greatly improving business agility; each service can scale/ contract independently and address the challenges of the Internet scale.

Of course, disassembling the single application of payment cloud (PayCloud) into multiple micro services will certainly increase the complexity of IT system research and development cooperation, delivery, operation and maintenance. At this time, the micro-service architecture and the DevOps, container naturally came together, forming the prototype of the cloud native application architecture. Microservice frameworks, such as Spring Cloud, encapsulate these capabilities in the form of a code base. These code bases are built in the application itself and published and maintained with the application. The Istio project led by Google, IBM is a typical implementation of service grid architecture, and it has also become a new phenomenon-level “network celebrity” all-around project.

Play micro-service: from operation and maintenance to DevOps organization is not enough, micro-service also means the need to organize DevOps. Microservices mean more parallel development, more frequent release and deployment, and higher overall complexity. At this time, it is necessary to get through the organization and process to implement DevOps. If the development team and the operation and maintenance team can not cooperate sincerely, or follow the traditional working mode, one only focuses on development, construction, testing, one only focuses on providing resources, deployment, operation and maintenance, operation and maintenance team or scapegoat, micro-service business is still unable to deploy and run efficiently. Organization DevOpsization, that is, the need for the integration of development and operation and maintenance, different services, different versions of the delivery environment need to be developed to write, because the operation and maintenance are not familiar with the different configuration and update of different modules, it is prone to deployment errors, affecting the normal online business; However, service registration, discovery, governance, configuration and so on, each business separate set of framework is unscientific, should sink into the operation and maintenance team unified management infrastructure. So the work of the development team and the operation and maintenance team has changed, fortunately, mature container technology provides a fusion tool.