Font Size: a A A

Design And Implementation Of Communication Framework For Microservice Architecture

Posted on:2022-11-18Degree:MasterType:Thesis
Country:ChinaCandidate:Z B FanFull Text:PDF
GTID:2518306764977979Subject:Automation Technology
Abstract/Summary:PDF Full Text Request
With the development of the Internet,the technology continues to update and progress,and the application scale of the system continues to expand.The traditional single architecture has been difficult to meet the needs of the development of the times.With the advantages of loose coupling,decentralization and flexible expansion,microservice architecture has become the mainstream software architecture and is widely used.In the microservice architecture,the business functions are divided into multiple independent services and distributed to each machine in the cluster.The communication framework is needed for information transmission and interaction between services.Therefore,the communication framework plays an indispensable role in the microservice architecture.The paper researches and studies the related technologies of the communication framework of the microservice architecture,investigates and analyses the common communication framework,studies the excellent design concepts and implementation methods of the communication framework,conducts the demand analysis according to the principles and functions of the communication framework,and uses the highperformance network programming framework Netty to design and implement a communication framework of the microservice architecture.The communication framework in this paper is divided into modules based on functions.The network communication module is mainly responsible for the communication between the server and the client based on the master master-slave multithreading model.It also designs the communication protocol between the two parties,manages the connection through the heartbeat mechanism and timeout mechanism,and implements a variety of serialization algorithms with scalability.Services in the microservice architecture need to be managed through the service registry.The service registration and discovery module is implemented by introducing the distributed application coordination service software Zookeeper.The service side registers service information in the service registry.The client automatically obtains a list of service addresses so that the client can make service calls through the service name only without manually configuring the service address information.The communication framework can not only provide remote call capability,but also have the semantic simplicity of local call;The load balancing module uses the client-side load balancing mode to achieve addressing capabilities and improve the performance of the communication framework,and supports multiple load balancing algorithms to adapt to multiple scenarios.Finally,Finally,the communication framework is used in specific application scenarios and is tested for function and performance.
Keywords/Search Tags:microservice architecture, communication framework, Netty, service registration and discovery, load balance
PDF Full Text Request
Related items