
How Airbnb achieved a 93% latency reduction by moving from PaaS to an optimized JanusGraph-DynamoDB stack.
This article explores Airbnb's journey in building a unified knowledge graph infrastructure to overcome the limitations of third-party vendors. It details the architectural shift toward storage-compute separation and the deep engine-level optimizations required for massive-scale identity resolution.
A must-read for backend and infrastructure engineers scaling graph-based systems. The insights on query rewriting and storage separation are highly applicable to large-scale data platforms.
Airbnb's identity graph reached 7B nodes and 11B edges, causing scalability limits with PaaS solutions, high long-tail latency (P95/P99) for 4-8 hop queries, and operational instability.
Built an internally managed knowledge graph platform using JanusGraph with DynamoDB for storage and OpenSearch for indexing. Implemented optimizations like custom transaction strategies using conditional writes and client-side Gremlin query rewriting.
Achieved 32-93% lower latency across query patterns and reduced end-to-end P99 latency by ~50%. Scaled write QPS by 10x compared to the previous vendor solution while eliminating manual reboots.
Trade-off
Shifting from a managed PaaS to an internal infrastructure requires significant upfront engineering investment and ongoing operational responsibility for maintaining the graph engine and storage integration.
A scalable, distributed graph database engine built on Apache TinkerPop that supports various storage backends.
An architectural pattern that decouples the graph processing logic from the underlying data persistence layer.
The process of optimizing graph traversal queries by restructuring steps to better align with the engine's query planner.




