Thrift:是否有可能只做序列化与C + + Thrift库? [英] Thrift: Is it possible to do only serialization with C++ Thrift library?
问题描述
使用C ++ Apache Thrift库,是否可以只使用序列化/反序列化而不使用RPC服务?
With C++ Apache Thrift library, is it possible to use only Serialization/Deserialization and not use RPC services?
从这个页面,可以使用Java库。但是,我找不到类似的类C ++库。
As I understand from this page, it is possible to do with Java library. However, I could not find the similar classes for C++ library.
推荐答案
Thrift缺少关于这个主题的文档。那么,什么真的。
Yes it is possible. Thrift lacks documentation about this subject. Well, about anything really.
在这里,我发现了:
我个人使用boost :: serialization如果没有必要通过网络传输数据。
语法清晰,支持JSON,XML和二进制输出/输入。
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.
这篇关于Thrift:是否有可能只做序列化与C + + Thrift库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!