Font Size: a A A

Research And Implementation Of A Lightweight Distributed RPC Framework

Posted on:2018-06-01Degree:MasterType:Thesis
Country:ChinaCandidate:R T LiuFull Text:PDF
GTID:2428330545968873Subject:Software engineering
Abstract/Summary:PDF Full Text Request
At present,a large number of enterprise appications for service deployment,using HTTP protocol and JSON for remote procedure call to ensure the dependencies between services.A connection needs to be established at each service invocation,and when a large amount of concurrency occurs,a large number of TCP connections are created that seriously affects the performance of the service.Increasing the server can lead to higher costs,but does little effect on the efficiency of service invocation.The HTTP protocol is not defined for RPC and will transfer large amounts of invalid data when remote service call is made.In this thesis designed and implemented a lightweight distributed RPC framework.The framework design and implementation of a custom TCP protocol based network transmission format.That can effectively improve the effective of the network to send data.This thesis abstracts the function of frame into three main functions,such as data transfer,service management and service invocation.The data transmission module provide a reliable guarantee for the realization of data transmission.The service management module is used to manage publish/cancel publish and subscribe/unsubscribe management service function.The service invocation module is the core of this framework to support distributed service invocation,designed and implement a distributed load balancing,fault tolerance,service monitoring and other functions,to ensure good reliable operation framework in the distributed environment.The framework provides Ext extension mechanism,all of the implementionof the framework are configurable and replaceable,provided the realization of the most of default function.Users can extend the functionality of the framework themselves using the Ext extension mechanism if the user's requirements are not met in practice.In this framework implementation process,using bytecode compilation,cache line filling and FastThreadLocal improved the performance of some Java problems,provides the framework of high performance and reliable guarantee.The design and implementation of this framework is to solve the problem that the remote procedure call performance is not high and complicated in the distributed environment,After some tests show that this framework has improvement the performance about 60%than the same type framework Dubbo.It can completely meet the demand of RPC calls in a distributed environment,improve the overall efficiency of distributed service and programming efficiency,also reduce the probability of error service invocation.The usage scenarios of this framework is in the process of enterprise application development of service.Through a small amount of configuration can provide distributed service invocation is similar to the ability of local service invocations for enterprises.
Keywords/Search Tags:Remote Procedure Call, Distribute System, Custom Transport Protocol, Extension mechanism
PDF Full Text Request
Related items