The Supernode
Easy · system design problem
A celebrity joins and half of all friend-of-friend traversals touch their node. Adding cluster members barely raises the ceiling.
social-api answers “people you may know” with friend-of-friend traversals on a 3-member Neo4j cluster. At T+20s a celebrity with 40M followers joins: for the rest of the day half of all traversals touch their node, which one member serves. Each read replica holds the whole 3 TB graph in memory and takes hours to seed. Suggestions are personalized.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.