Scenario
Design a real-time home feed (e.g., social or content platform) that is responsive to user engagement.
Users open the app and see a ranked list of posts/items. As they engage (click/like/comment/dwell), the feed should adapt quickly.
Task
Design the end-to-end system including:
-
Candidate generation
and
ranking
.
-
Incorporating
real-time engagement signals
(both the viewer’s actions and global engagement).
-
Storage, services, and streaming/infra components needed to meet latency and scale.
-
Model training, feature pipelines (offline/online), evaluation, and experimentation.
Requirements (state assumptions if needed)
-
Latency:
low p95 end-to-end feed response.
-
Freshness:
newly published items can appear quickly.
-
Personalization:
based on user history + session context.
-
Reliability:
graceful degradation if real-time components fail.
-
Integrity:
prevent spam/manipulation; handle feedback loops.