ZeroMQ + Protocol Buffers

前端 未结 4 803

ZeroMQ FAQ page suggest use of Google\'s protobuf as a way to serialise message content.

Has anyone see a good usage example?

I also need to get the answer to \"

4条回答
  •  北海茫月
    2021-01-31 17:33

    I am not sure PUB/SUB in 0mq will work with protobuf, because 0mq expects a string topic at head of the msg.. but protobuf puts a field descriptor first.

    actually here is a link with a solution.

    http://www.dotkam.com/2011/09/09/zeromq-and-google-protocol-buffers/

    cheers

提交回复
热议问题