Flume C# Thrift客戶端
Flume Thrift Source ThriftSouce.java 使用TCompactProtocol、TFastFramedTransport做協議傳輸層。
而我們的DSF注冊係統的Thrift使用TFramedTransport做傳輸層。翻看Thrift的API,看兩個類的區別:
```
This transport is wire compatible with
TFramedTransport
,
but makes use of reusable, expanding read and write buffers in order to avoid allocating new byte[]s all the time. Since the buffers only expand, you should probably only use this transport if your messages are not too variably large, unless the persistent
memory cost is not an issue. This implementation is NOT threadsafe.
```
貌似互相兼容、下一步C#客戶端,使用TFramedTransport與Flume ThriftSouce交互、看看是否兼容
測試了半個小時、可以正常發送接受數據。
注意:event在C#裏麵是關鍵字,所以利用Thrift編譯器生成客戶端的接口時,要把所有event關鍵字改成events
最後更新:2017-04-03 12:55:13