LinkedIn HLD: Degrees of Separation on a Billion-Edge Graph
A LinkedIn system design: the connection graph, degrees of separation via BFS, People You May Know ranked by mutual connections, why deep traversal is precomputed, and scaling the graph.
"Design LinkedIn." Profiles and a feed are the visible surface, but the thing that makes it a network is the connection graph — and two queries on it define the product. "How are we connected?" (the 1st / 2nd / 3rd-degree badge) is a shortest-path search through the graph. "People You May Know" is the friends-of-friends you share the most connections with. Both are graph traversals, and both run into the same wall: with a billion members each holding hundreds of connections, naïvely fanning out three hops touches millions of nodes per query — so the design is as much about when to precompute a…
What’s inside
Read this one free
Sign in and your first premium article is on us — read LinkedIn HLD: Degrees of Separation on a Billion-Edge Graph free.