This paper designs and implements a RPC communication system,which is a kind of important means to build distributed service system.The system based on C/S architecture,and the framework of the system adopts the producer-consumer model.For a good performance,the design of the system from buffer,thread intercommunication,containers of meth-ods,thread implementation,etc,and the network module is based on Netty.%远程过程调用(RPC)是构建分布式服务系统的重要技术[1],设计并实现了一种RPC通信系统。该系统基于C/S架构,系统框架采用“生产者-消费者”模型。为实现系统的良好性能,在接收/发送缓冲区、线程通信、装载方法的容器、线程实现等方面做了良好的设计。网络模块是基于异步的、事件驱动的Netty框架实现,同时,对序列化方式、定时器也进行了优化。
展开▼