From 871190f9535f0efa0bef85b4e0c0d127359d8c93 Mon Sep 17 00:00:00 2001 From: chenxy123 Date: Sat, 29 Oct 2016 22:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0vn.rpc=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/Windows Azure Subscriptions.xml | 2 +- vn.rpc/README.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 vn.rpc/README.md diff --git a/vn.ib/vnib/Visual Studio 2013/settings/Windows Azure Subscriptions.xml b/vn.ib/vnib/Visual Studio 2013/settings/Windows Azure Subscriptions.xml index c5b783f6..0c26d6aa 100644 --- a/vn.ib/vnib/Visual Studio 2013/settings/Windows Azure Subscriptions.xml +++ b/vn.ib/vnib/Visual Studio 2013/settings/Windows Azure Subscriptions.xml @@ -1,5 +1,5 @@ - AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAhuIZgFnYcU6wvp5DI4FozAAAAAACAAAAAAAQZgAAAAEAACAAAADMEWBgvMml8Fe/qlmDdXKVEz/jG/RgK0H6G1lBilzBPQAAAAAOgAAAAAIAACAAAAC8JAGts1zJr37kkU1UoUus+a4SF8Oyln3wjVlbyYIblhAAAABr4GPtXHIoY0LtD2t3alpQQAAAAAnG9PILjcZQiOgioc5/N1ULeW03QwNYi0ywjnh2ln3ICpGXHAgkUc7ZEzHv32wBqCZeOkE7YxhPtohHvDpGzi8= + AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAhuIZgFnYcU6wvp5DI4FozAAAAAACAAAAAAAQZgAAAAEAACAAAAAXSj17R5SUHe+A58o1bYLSOOhH9W2Ix9DlZDFBrgVA4gAAAAAOgAAAAAIAACAAAADbVSL+BIaujSBj3UmMHFYW0NN/5M1VZMBFC5NayhA3uBAAAADlsZqLyiwLiExTjbbDU1nZQAAAAA8KhP6XKTAD/Iuw37pqb7rSwSDYQgFsBJvhh4KMkHc9aX3Q+ga9NjStuUrdZVmuMzeMGwsQ+bjLejvA3cCOI9c= \ No newline at end of file diff --git a/vn.rpc/README.md b/vn.rpc/README.md new file mode 100644 index 00000000..5292bdcf --- /dev/null +++ b/vn.rpc/README.md @@ -0,0 +1,19 @@ +# vn.rpc + +### 简介 + +提供跨进程服务调用的RPC模块,同时支持服务端向客户端的主动数据推送,用于实现vn.py框架下模块的多进程解耦。 + +### 说明 + +1. 使用zmq作为底层通讯库 + +2. 目前支持两种数据序列化方案:msgpack(默认)和json,用户在RpcObject中可以自行添加其他方案 + +3. 客户端和服务端通过REQ-REP模式实现跨进程服务调用 + +4. 客户端和服务端通过SUB-PUB模式实现主动数据推送 + +5. RpcClient的send和RpcServer的publish函数不是多线程安全的,在多线程中使用时需要用户自行加锁,否则可能导致zmq底层崩溃 + +6. 考虑到vn.rpc的主要应用场景是本机多进程或者局域网内分布式架构,网络可靠性较高,因此没有在模块中提供心跳功能,用户可以视乎自己的需求添加