Meta

Under the Hood: Building and open-sourcing fbthrift

Feb 20, 2014Dave Watson
Under the Hood: Building and open-sourcing fbthrift
SummaryAI, from the source post

This post details the evolution of Facebook's internal Thrift framework into fbthrift. Key technical contributions include the adoption of folly's IOBuf for efficient memory management with chained buffers, enabling out-of-order responses and reducing memory allocation overhead. A new THeader protocol was introduced to support per-request features and attributes without modifying core libraries, enhancing flexibility and backward compatibility. The release of fbthrift includes a new C++ code generator (cpp2) which has shown up to 50% latency reduction and significant memory footprint decreases in production services. The asynchronous C++ code is also a dependency for HHVM.

More from the Facebook Engineering Blog trail