记录生活

TFramedTransport and TBufferedTranspor

<Category: 小道消息> 查看评论

Mark

 

Ref:
http://mail-archives.apache.org/mod_mbox/incubator-thrift-user/201001.mbox/<e31abce81001160951m6cebde2wd12c150a1ec75635@mail.gmail.com>

https://issues.apache.org/jira/browse/THRIFT-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

http://www.imneio.com/2009/10/thrift-csharp-hypertable-issue/comment-page-1/#comment-239

Generally, unless you're working directly from memory, you should always use
either framed or buffered transport. Otherwise, every little byte you need
to read out will go to the OS buffer, which will just crush your
performance.

Additionally, if you are connecting to a nonblocking server (like Java's
TNonblockingServer and THsHaServer), then you *must* use a framed transport,
since this is the only way they can tell when a whole message has been sent.

-Bryan

On Sat, Jan 16, 2010 at 5:03 AM, Anner van Hardenbroek <
dwlnetnl@users.sourceforge.net> wrote:

> Hi,
>
> I've a question about the  and the TBufferedTransport.
> When do you use them?
>
> Thanks.
> - Anner.
>
> --
> Anner van Hardenbroek
> dwlnetnl@users.sourceforge.net
>
>

本文来自: TFramedTransport and TBufferedTranspor



发表评论

您必须登录后才能发表评论。