增加vn.rpc模块的说明
This commit is contained in:
parent
45ce784cfa
commit
871190f953
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<SubscriptionDataContainer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.Authentication.CacheManagement">
|
<SubscriptionDataContainer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.Authentication.CacheManagement">
|
||||||
<Items />
|
<Items />
|
||||||
<TokenCache>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAhuIZgFnYcU6wvp5DI4FozAAAAAACAAAAAAAQZgAAAAEAACAAAADMEWBgvMml8Fe/qlmDdXKVEz/jG/RgK0H6G1lBilzBPQAAAAAOgAAAAAIAACAAAAC8JAGts1zJr37kkU1UoUus+a4SF8Oyln3wjVlbyYIblhAAAABr4GPtXHIoY0LtD2t3alpQQAAAAAnG9PILjcZQiOgioc5/N1ULeW03QwNYi0ywjnh2ln3ICpGXHAgkUc7ZEzHv32wBqCZeOkE7YxhPtohHvDpGzi8=</TokenCache>
|
<TokenCache>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAhuIZgFnYcU6wvp5DI4FozAAAAAACAAAAAAAQZgAAAAEAACAAAAAXSj17R5SUHe+A58o1bYLSOOhH9W2Ix9DlZDFBrgVA4gAAAAAOgAAAAAIAACAAAADbVSL+BIaujSBj3UmMHFYW0NN/5M1VZMBFC5NayhA3uBAAAADlsZqLyiwLiExTjbbDU1nZQAAAAA8KhP6XKTAD/Iuw37pqb7rSwSDYQgFsBJvhh4KMkHc9aX3Q+ga9NjStuUrdZVmuMzeMGwsQ+bjLejvA3cCOI9c=</TokenCache>
|
||||||
</SubscriptionDataContainer>
|
</SubscriptionDataContainer>
|
19
vn.rpc/README.md
Normal file
19
vn.rpc/README.md
Normal file
@ -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的主要应用场景是本机多进程或者局域网内分布式架构,网络可靠性较高,因此没有在模块中提供心跳功能,用户可以视乎自己的需求添加
|
Loading…
Reference in New Issue
Block a user