Font Size: a A A

Design And Implementation Of RPC Framework Based On Plug-in Extension

Posted on:2023-10-07Degree:MasterType:Thesis
Country:ChinaCandidate:S XuFull Text:PDF
GTID:2568307022999589Subject:Software engineering
Abstract/Summary:PDF Full Text Request
At present,enterprise systems are deployed in a distributed architecture,and there are many remote procedure calls,RPC(Remote Procedure Call)as the basic communication components in each business module,which carries thousands of service communication networks of the enterprise.Nowadays,the design of the open-source RPC is based on versatility,the overall framework is too bloated,it is difficult for developers to use and maintain,and enterprises can not customize the development based on the general architecture.To simplify the cost of developing customized RPC and provide easy-to-maintain RPC communication components,this paper proposes to design a lightweight RPC framework based on the plug-in extension.First of all,the paper analyzes the application scenarios and requirements of RPC.Through the research on the general RPC framework,a lightweight architecture based on plug-in extension RPC is designed.The core functions needed in the remote invocation process are divided into four modules: plug-in extension,service management,service invocation,and data transmission.Secondly,according to the functions provided by each module,analyze the technologies it needs to use and design the underlying workflow of each function.Based on workflow,each module’s classes and methods are designed and implemented by coding.Finally,based on the micro-service second-kill platform with plug-in RPC as the background,the application scene and the function of each module of RPC are verified.Based on the normal function of the framework,taking the load balancing component as a use case,the components are switched and added,and the extensibility of the framework is tested.The performance differences between plug-in RPC and open-source framework Dubbo are compared through four sets of test scripts.Through the specific distributed application and the test of the extensibility and performance of the framework,the results show that each function of the framework runs normally in the distributed remote communication,and the whole has good extensibility.it provides a simple and convenient way for developers to realize component extension.In terms of performance,the average response latency of plug-in RPC is lower than that of similar products Dubbo as a whole.Using this framework for remote service invocation can not only improve the transmission efficiency but also deal with various business changes more easily based on the plug-in extension mechanism.
Keywords/Search Tags:Distributed, Remote Procedure Call, Plug-in, Extensibility
PDF Full Text Request
Related items