Episode Summary
Executive Summary: LinkedIn’s Hema Raghavan and Scott Meyer explain how graphs power core products like People You May Know, feed, notifications, and jobs. They argue that LinkedIn’s social network is its key asset, and that real-time graph traversal, affinity modeling, and custom in-memory database infrastructure are necessary to serve relevance at massive scale. They also discuss modeling approaches, systems bottlenecks, and open research questions for academia.
Main Topics: Why graphs are central to LinkedIn: LinkedIn’s professional network is the platform’s core asset, and graph structure drives recommendations, feed relevance, notifications, and job referral value. People You May Know and affinity modeling: The team treats connection building as a predictive problem: forecast likely edges, acceptance likelihood, and future interaction value across contexts. Scale and systems constraints: Graph problems at LinkedIn are inherently massive and often resemble n-squared problems, requiring distributed systems expertise, in-memory storage, and careful query planning. Graph database architecture: LinkedIn runs an internal in-memory graph database on bare Linux, with multiple instances across colos for continuity, and uses it online to support site functionality. Modeling approaches for graph relevance: They use a spectrum from logistic regression and decision trees to deep-learning-style graph embeddings and mixed-effect models for personalization. Real-time traversal vs batch caching: A key insight was that walking the graph in near real time during user sessions improves People You May Know relevance more than relying on stale cached recommendations. Open problems and research gaps: They highlight gaps in academic literature around distributed graph learning, A/B testing on non-IID networks, and scalable graph experimentation.
Key Arguments: LinkedIn’s social graph is the foundational asset that powers multiple product experiences, not just one recommendation surface. People You May Know is not merely link prediction; it must also optimize for long-term value after a connection is made. Graph problems are unusually hard because scale and skew make brute-force or naive SQL-style joins impractical. Real-time graph traversal during active user sessions can outperform precomputed or weekly cached recommendations because networking behavior is contextual. The graph database is part of the online serving path; if it fails, major LinkedIn pages and features fail too. Graph processing needs dynamic query planning because statistics-based static optimizers break down after projections and under skew. More advanced models like GraphSAGE-style embeddings and mixed-effect models help capture structural and personalized effects that simple linear models miss. Academic progress is limited by missing large datasets, sparse niche communities, and unresolved issues like how to A/B test connected users without violating independence assumptions.
Data Points: LinkedIn graph database instances: 7 - Hema describes LinkedIn as operating seven instances for continuous service Colos: 4 - The graph service is distributed across four colocation sites RAM per cluster: roughly 20 terabytes - Scott describes each graph database cluster as an in-memory system with this capacity Years in graph databases: about 15 years - Scott says he has spent roughly 15 years working in graph databases Time to ramp up: at least 6 months - Scott says it takes new engineers around six months to become productive in graph databases Machine size example: 1.5 terabytes of RAM - Scott suggests a single large machine as an economical small-scale graph setup Rack price example: $20,000–$25,000 - Scott estimates the cost of a 1.5 TB Dell machine
Pivotal Quotes: "the fundamental asset that users has on LinkedIn ... is the social network" — Hema Raghavan: Explaining why graph-based systems are central to LinkedIn’s products "the magic in LinkedIn is in the second degree" — Scott Meyer: Describing why indirect connections create the most value on the platform "what if we used random access" — Scott Meyer: Explaining LinkedIn’s choice to build an in-memory graph system optimized for online traversal
Implications: LinkedIn’s approach shows that graph ML at scale requires tight integration of modeling and systems design. Future progress likely depends on real-time graph infrastructure, better graph embeddings, and new experimentation methods for connected users.