Trending detects popular topics in real-time. Approach: count hashtag occurrences in sliding window (last hour). Rank by velocity (rate of increase), not just volume.
Implementation: stream processor (Flink, Kafka Streams) aggregates counts. Bloom filters for approximate counting at scale. Decay old counts exponentially. Personalize trends by location and interests.