Font Size: a A A

Research And Implementation Of High Performance RPC Server Based On Netty

Posted on:2019-10-04Degree:MasterType:Thesis
Country:ChinaCandidate:J SuFull Text:PDF
GTID:2428330566499247Subject:Electronics and information engineering
Abstract/Summary:PDF Full Text Request
In the high-speed Internet era,the business of the website is developing rapidly and the traffic is increasing rapidly.The distributed system architecture is used to deal with the huge business requests by most Web sites,and assign the requests to the servers in the system by the way of remote procedure call.For the remote call mode,the request message needs to deal with a large number of I/ O concurrent requests through the network,which is a great challenge to the servers communication capability.In contrast to the traditional NIO(New IO)framework,Netty has been optimized on buffers,channels,and thread pool models.High concurrency I/ O requests are processed by rational scheduling of I/ O threads.In addition,Netty provides a flexible custom mechanism for users to add user-defined processors to Nettys processing chain to intercept and process business messages.In this paper,Netty is used as the underlying communication framework of the server,and a high performance RPC(Remote Procedure Call)server is designed.The principle and parameter transfer mechanism of RPC remote procedure call is analyzed in this paper firstly,and the development process of IO communication model and load balancing algorithm is studied.According to the function and performance requirements of the RPC server,the system framework is designed and constructed.Then the IO model of Netty,the threading model and the message handling of Netty are studied.From the point of view of server scheduling process,the communication scheduling module,codec module,service publishing and subscription module,business scheduling module and the function of long connection service are implemented respectively.The function of a high-performance server is realized by calling processing among modules,and the server is optimized preliminarily.Finally,through the experiment,the performance of each module of the server is tested,and found that the server has good concurrency processing performance.
Keywords/Search Tags:Netty, server, RPC, remote call, load balancing, IO
PDF Full Text Request
Related items