使用ZeroMQ的C ++中的RPC框架 [英] RPC Framework in C++ utilizing ZeroMQ

查看:1669
本文介绍了使用ZeroMQ的C ++中的RPC框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用ZeroMQ推拉式套接字模式在C ++中编写一个客户端 - 服务器应用程序。客户端必须对服务器接口中指定的函数进行RPC调用。我不知道是否有一个开源和商业可用的库/框架为此目的主要是在C ++。我做了一些googling,似乎有些事情写在python,但我喜欢在C + +如果可能的话,ZeroMQ方便。任何建议/指导是赞赏。谢谢。

I need to write a client-server application in C++ using ZeroMQ push-pull socket pattern. The client has to make RPC calls to the functions specified in the server interface. I wonder if there is an open source and commercially usable library/framework for this purpose primarily in C++. I made some googling and there seem to be things written in python but I prefer something in C++ that comes handy with ZeroMQ if possible. Any suggestion/guidance is appreciated. Thanks.

推荐答案

Thrift RPC框架与ZeroMQ REQ / REP套接字作为一个传输。 Thrift源代码库包含一个C ++中的样例,它有几个可重用的类: https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=tree;f=contrib/ zeromq; h = 14bbc6f51dae649b423f9157c08abac27157d416; hb = HEAD

Thrift RPC framework plays well with ZeroMQ REQ/REP sockets as a transport. Thrift source repository contains a sample in C++ that has couple of reusable classes: https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=tree;f=contrib/zeromq;h=14bbc6f51dae649b423f9157c08abac27157d416;hb=HEAD

最近我开始使用ThriftZMQ开源项目,目的是为Thrift实现不同语言的互操作ZeroMQ传输。但是,现在它只有Java实现: https://github.com/thriftzmq

Recently I started ThriftZMQ open-source project with the goal to implement interoperable ZeroMQ transport for Thrift in different languages. However, for now it only has Java implementation: https://github.com/thriftzmq

这篇关于使用ZeroMQ的C ++中的RPC框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆