Thrift: Is it possible to do only serialization with C++ Thrift library?

后端 未结 5 1545
执笔经年
执笔经年 2021-01-02 05:21

With C++ Apache Thrift library, is it possible to use only Serialization/Deserialization and not use RPC services?

As I understand from this page, it is possible to

5条回答
  •  感情败类
    2021-01-02 05:32

    I realize that this question was asked a while ago. I encountered a similar use case recently (with an additional requirement - sending the serialized bytes to a Kafka cluster). Here's my answer with more complete code snippets that illustrate how the serialization and sending tasks can be done.

提交回复
热议问题