在哪里可以找到使用 boost + 实现的 RPC?原始缓冲区
有没有用boost + protobuf实现的RPC框架?它有一个 protobuf 插件,可用于为框架生成 RPC 代码。
或者有一些开源实现我可以参考,请告诉我。
谢谢。
Are there any RPC framework implemented with: boost + protobuf? And it has a protobuf plugin can be used to generate RPC code for the framework.
Or there are some open source implementations I can refer to, please tell me.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我最近通过一个问题发现有一个:RCF(远程调用框架)
似乎可以使用
boost.asio
和协议缓冲区
。我自己没用过。我的2c
I recently find through a SO question that there is one : RCF (Remote Call Framework)
It seems it can use
boost.asio
andprotocol buffers
. I have not used it myself.my2c
这正是我的一所大学必须在专有项目中构建的内容(带有一些额外的很酷的东西),因此我可以分享他的专家建议。
他相信你运气不好,不会在网上找到该组合...
但是,如果你不需要 Protobuffs 使用的特定格式,你可以使用 Thrift。
Thrift 是一位曾经在 Google 工作过的 Facebook 员工的产品,因此它与 Protobuffs 非常相似,主要区别正是你所要求的 -
使用 Boost 进行内部实现,以及对 RPC 传输层和服务的内置支持。
唯一的问题是目前还没有 Windows 版本的 Thrift 端口,但它在 Linux 上运行得很好。
您还可以检查 Protobuffs 的服务选项,它没有提供太多信息,但它是一个很好的起点。
祝你好运!
That's exactly what one of my colleges had to build in a proprietary project (with a couple of extra cool stuff), so I can share his expert advise.
He believe you're out of luck and won't find that combo online...
However, if you're not in needed of a the specific format used by Protobuffs you can use Thrift.
Thrift is a product of a Facebook employee who once worked in Google, so its very similar to Protobuffs, and the main difference is exactly what you asked for-
Internal implementation using Boost, and a built-in support for RPC transport layers and services.
The only problem is that currently there is no port of Thrift for Windows, but it works great for Linux.
Also you can check Protobuffs' Service option it doesn't give a lot but its a good place to start.
Best of luck!
有这个。我不知道这是否是正确的“proactor”asio。
http://code.google.com/p/server1/
There's this one. I don't know if it's proper 'proactor' asio.
http://code.google.com/p/server1/