| In today’s rapidly iterating technology,systems with microservices architecture have become the first choice when it comes to software development.However,microservices are also a double-edged sword.However,microservices architecture is also a double-edged sword,bringing many advantages to software development while introducing the issue of service governance between service modules into the whole system.For service governance requirements,most projects are currently using invasive service governance techniques to achieve the requirements by integrating SDK frameworks.However,intrusive development is bound to introduce more problems,such as coupling between business logic and governance,middleware version fragmentation,and the development language of each module is constrained by the language of the middleware.In order to solve the above problems,this paper takes a laboratory Internet hospital project as a case study and reconfigures it from a traditional microservice architecture to a Service Mesh based architecture.Relying on the Service Mesh data plane to provide non-intrusive service governance capability to the project,it realizes the complete decoupling of business logic and governance logic.In this paper,we choose Kubernetes container orchestration tool and Istio Service Mesh as the infrastructure layer,choose to use MOSN component as the data plane of Istio Service Mesh,and optimize the load balancer of MOSN component in conjunction with the project.In this paper,in order to achieve rapid refactoring of the project,we also designed the service communication component to make it compatible with the service mesh,eliminated the original redundant dependencies in the project,reduced the size of the jar package of each module of the project by 20%,and improved the communication performance by about 5%compared with Open Feign,while maintaining the stability of the overall coding style.At the same time,this paper designs and implements a dynamic load balancing algorithm in the service mesh based on the jump consistency hash algorithm and applies it to the MOSN.Through exhaustive functional and performance tests,the original system can run normally and the concurrent performance is improved by about 9%,which proves that the functional modules designed and implemented in this paper can run well.Finally,a service governance platform based on the combination of Kubernetes and Istio Service Mesh is realized,which can better monitor and manage the operation of the original Internet hospital project in detail through third-party open-source monitoring tools. |