Skip to content
StackDecode
System Design
20. System Design Case StudiesAnimated

Recommendation Engine

Suggest items users may like.

The idea

Candidate generation narrows millions to hundreds, then ranking orders them.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Event streamFeature pipelineCandidate gener…Ranking modelServe API
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Clicks and views stream in as events.

step:
1/4
at:
Event stream
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Collect behaviour
  2. 2Generate candidates
  3. 3Rank with a model
  4. 4Serve and learn from clicks

Where it is used

Feeds, shops, media.

Watch out for

Feedback loops and cold start.

Related