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

后端 未结 5 1560
执笔经年
执笔经年 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:41

    Yes it is possible. Thrift lacks documentation about this subject. Well, about anything really.

    Here i found this:

    http://mail-archives.apache.org/mod_mbox/thrift-user/201010.mbox/%3C5EF8F634-79A2-45C4-9A04-6D96D3B7A84F@manbert.com%3E

    i personally use boost::serialization if there is no need to transfer data over network. Much clear syntax and supports JSON, XML and binary output/input.

提交回复
热议问题