Ming Rpc

原文地址:http://iwantmoon.com/Post/487ab43d609f49d28ff4228241e2b7c7

 

Rpc(Remote Procedure Call Protocal)远程调用协议,分布式项目的支柱。

Ming Rpc(Ming Remote Procedure Call)是为MFS(Ming File System)设计的Rpc框架,特点在于Ming Rpc将过程开放给Command,所有共同处理部分在Rpc Server中封装。

流程简述:

1、Server side在开始侦听后,由Client向Server发出请求

2、Server接收到Accept,分析Request,再由CommandFactory构造处理此请求的Command

3、调用Command用以处理请求。此过程类似于Mvc的Controller

    在处理的过程中,Command有非常高的自由度,所以可以满足开发人员对自由度的要求

4、Send result message to client, End.

 

 

posted @ 2016-02-25 10:54  puma  阅读(315)  评论(0编辑  收藏  举报