Sitemap
The Airbnb Tech Blog

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io

Accelerating Services at Airbnb by Building — and Open Sourcing — a Blazing Fast Thrift Binding for Ruby

6 min readJul 31, 2017

--

Press enter or click to view image in full size
The evolution of Sparsam’s performance over time. Higher is better, with the leftmost being the original Thrift implementation in Ruby.

Achieving Bare-Metal Performance in Ruby

Avoiding Costly String Allocations

Eliminating Excessive Cross-Language Function Calls

Caching Schema Information in C++ Containers

Removing Layer of Indirection by Using Instance Variables

Benchmarks

Press enter or click to view image in full size
QPS Comparison for Different Serializers in Ruby. Higher is better.

Strict & Powerful Validation of Thrift Structs

Conclusion

--

--

The Airbnb Tech Blog
The Airbnb Tech Blog

Published in The Airbnb Tech Blog

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io

Andy Fang
Andy Fang

Written by Andy Fang

Cloud Infrastructure @Airbnb. Ex @PoloDataClub, @GeorgiaTech. I make AWS wrappers. https://andyfang.me.

Responses (3)