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 one number decides the whole design. You have ~500 connections; each of them has ~500; each of theirs has ~500. So the ring one hop out is ~500 people, two hops is ~250,000, three hops is ~125 million. Every LinkedIn question — the 1st / 2nd / 3rd-degree badge on a profile, People You May Know, "who can introduce me" — is a walk across those exploding rings. The engineering isn’t the walk; a graph traversal is a first-week algorithm. It’s stopping the walk before …
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.