Design a Trending-Hashtags Detection System

Asked at Meta · System Design for ML · Difficulty: Hard

Design a backend that detects and serves trending hashtags from posts. Requirements: surface trends while the real-world event is still happening (target ~1-minute end-to-end freshness), score posts from the last 24 hours with recency weighting, reflect broad community interest (not one small cluster spamming), require novelty (a new topic or a sharp spike vs its own baseline), and serve the ranked list with low read latency.

Loading the problem…