我计划使用 Apache Thrift 来监控本地更改的任何更改并将该数据推送到客户端(更改的数据)。
当我检查节俭文档时,我看到了多个传输层,但不明白我应该使用哪个传输层
http://thrift-tutorial.readthedocs.io/en/latest/thrift-stack.html
Tranport Layer
The transport layer is responsible for reading from and writing to the wire. Thrift supports the following:
TSocket - Uses blocking socket I/O for transport.
TFramedTransport - Sends data in frames, where each frame is preceded by a length. This transport is required when using a non-blocking server.
TFileTransport - This transport writes to a file. While this transport is not included with the Java implementation, it should be simple enough to implement.
TMemoryTransport - Uses memory for I/O. The Java implementation uses a simple ByteArrayOutputStream internally.
TZlibTransport - Performs compression using zlib. Used in conjunction with another transport. Not available in the Java implementation.