HomeCase StudiesAlgorithmic Trending Calculations and Weighted Post Engagement Scoring
Performance OptimizationTechnology & Digital Platforms

Algorithmic Trending Calculations and Weighted Post Engagement Scoring

A dynamic social feed needs to highlight popular, highly engaging content without relying on static timestamp sorting or database-heavy calculations.

The Challenge

Sorting posts by timestamps makes feeds feel static. However, computing complex engagement algorithms on the database side for every feed refresh creates heavy processing overhead, increases query latency, and spikes database costs.

Solution & Architecture

Designed an algorithmic scoring system that calculates post engagement scores in real-time. The system aggregates interactions (likes, comments, views) along with relative hashtag popularity and AI summary metrics, sorting posts according to a weighted score combining likes, comments, views, hashtag popularity, and AI classification metrics. Posts are sorted according to this dynamic score to compile a real-time leaderboard of trending posts.

Technologies & Tools Used:

FlutterFirebaseCloud FunctionsAlgorithmic Scoring