Font Size: a A A

Design And Implementation Of Distributed RPC Framework

Posted on:2019-05-26Degree:MasterType:Thesis
Country:ChinaCandidate:H F KongFull Text:PDF
GTID:2428330590950640Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the continuous breakthrough of Internet technology,the functions of Internet applications are also increasing.In order to attract more user groups,Internet companies continue to improve and expand their systems to provide users with more services.With the continuous improvement of the system,the scale of the business continues to grow,and the system will become huge and complex.This will greatly increase the cost of system interaction,version iteration,and post-maintenance.The system itself is split according to the business function,and the split modules work together in the form of service release and service call,which can greatly reduce the cost required above under the premise of ensuring the performance of the system.The distributed RPC(Remote Procedure Call)framework is a middleware that works between modules to coordinate the work between modules to ensure the normal operation of the system.The traditional remote procedure call method usually uses the HTTP protocol to communicate.A TCP connection needs to be established for each call,and each request and response carries a partial invalid field,which affects the service call efficiency.The RPC framework designed in this paper reduces the transmission of invalid fields by customizing the communication data format.At the same time,the underlying information of the framework is used interchangeably asynchronous communication framework.The framework can be divided into data processing module,service publishing module and service calling module according to functions.The data processing module is used to request decoding of data and encoding of response data.The service release module implements the framework's high performance and high availability lines through service registration and service release,while also supporting service level expansion.The service invocation module is a parameter that calls the data after the data processing module as a service,and calls the corresponding service.The service invocation module is the core function module of the RPC framework,and the service call adopts a load balancing strategy to improve the utilization of hardware resources.Compared with the traditional remote process mode,this framework customizes the data transmission format and improves the effective throughput of the system.The asynchronous communication framework Netty is adopted in the information interaction mechanism,and the service caller can get a response quickly after initiating the request.The release of the service adopts the form of registration + release,which improves the availability and expansion of the framework,effectively prevents single points of failure,and supports the horizontal expansion of services.When the framework works in a complex system of business,under the premise of guaranteeing the response speed of the service request,it plays a good decoupling effect on the business module of the system.
Keywords/Search Tags:Remote Procedure Call, Service call, Asynchronous communication, Distributed
PDF Full Text Request
Related items