0

I am trying to implement a set of services which are temporarily implemented with tcp but will eventually be moved to udp. I had my proto file converted to the rpc interface, but this requires a server, rpc channel, and rpc controller.

I don't know what rpc controller and rpc channel are, much less how to implement them. Can anyone explain?

Thanks in advance.

Derek W
  • 9,708
  • 5
  • 58
  • 67
guitar80
  • 716
  • 6
  • 19
  • I looked briefly at protobuf-remote which seems to have never been completed and only does tcp. I also have been looking at gRPC which might work... Not sure – guitar80 Jun 17 '15 at 13:58

1 Answers1

1

I've built a protobuf RPC in C++, but it might help a bit.

The controller generally controls the status of the message, like Failed. Example here.

In my implementation, there is no channel at all. I would imagine that channel takes care of keeping the message flows' consistency, e.g., an internal session state. So the server can accept multiple requests at the same time and response correspondingly. (I could be wrong about this)

Take a look of my bare bone RPC middle ware here, it's really simple, only 8 source files.

Madwyn
  • 409
  • 3
  • 13