RPC Framework in C ++ using ZeroMQ

I need to write a client-server application in C ++ using the ZeroMQ double-click template. The client must make RPC calls for the functions specified on the server interface. I wonder if for this purpose there is an original and commercially usable library / structure for this purpose, especially in C ++. I did some Google search, and it looks like something is written in python, but I prefer something in C ++, which comes in handy when using ZeroMQ, if possible. Any suggestions / recommendations are appreciated. Thanks.

+3
source share
2 answers

Google protobuf provides wrappers and stubs for client methods for RPC services used in C ++.

The user must explicitly determine the transport mechanism used for this, ZeroMQ would be a suitable choice for implementing IMHO (so this is different, as you requested, but it does not matter at the end).

Another SO question that contains more detailed information on the available alternatives: Which rpc / messaging structure is best suited for this case?

+2
source

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

I recently started an open-source ThriftZMQ project with the goal of implementing compatible ZeroMQ transport for Thrift in different languages. However, at the moment it only has a Java implementation: https://github.com/thriftzmq

+2
source

All Articles