| While benefitting from the development of the Internet industry,enterprises also face enormous technical challenges.They have to refactor and transform their information technology service products,from the traditional single application architecture to the micro-service architecture to achieve the goal of platformization,centralization,and cloud native.The network agent realized in this paper effectively integrates the heterogeneous service system through the sidecar deployment mode,and then implements the service management efficiently,and finally achieves the goal of platform,centralization and cloud originality of the micro service architecture system,which greatly reduces the cost of solving the above problems for enterprises.This paper designs and implements heterogeneous service network agent that meets specific business needs by performing functional requirements analysis and non-functional requirements analysis on specific scenarios.The network agent in this paper is based on Client/Server architecture and is mainly divided into three modules:TCP long connection network communication module based on Netty,custom private protocol stack module based on network communication module,and Etcd-based service registration central module.The network agent in this paper has basically realized the functional requirements for the data plane in the service mesh,including protocol conversion,service registration and discovery,and functional requirements of some control planes,including load balancing.In addition to the above functional requirements,for non-functional requirements,such as high performance,low latency,linear growth of performance,and lightweight,the main tasks are:design and implementation of scene-related zero-copy technology,asynchronous non-Design and implementation of blocking communication models,caching techniques and pooling techniques.According to the idea and method of software engineering,combined with the specific scene requirements,this paper analyzes the requirements by constructing the use case model,and displays the design ideas of middleware with the system architecture diagram.The flow chart shows the network communication module,the custom private protocol stack module and the service registration center module designed in this paper.The experimental results of stress test in this paper show that the network agent middleware in this paper is a network agent implementation with heterogeneous service systems with certain versatility,complete basic functions and high performance,which basically meets the expected design and goals. |