You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Anner van Hardenbroek <dw...@users.sourceforge.net> on 2010/01/16 14:03:54 UTC

TFramedTransport and TBufferedTransport

Hi,

I've a question about the TFramedTransport and the TBufferedTransport.
When do you use them?

Thanks.
- Anner.

--
Anner van Hardenbroek
dwlnetnl@users.sourceforge.net


Re: TFramedTransport and TBufferedTransport

Posted by Bryan Duxbury <br...@rapleaf.com>.
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 TFramedTransport and the TBufferedTransport.
> When do you use them?
>
> Thanks.
> - Anner.
>
> --
> Anner van Hardenbroek
> dwlnetnl@users.sourceforge.net
>
>