Back to problems

Design a Real-Time Top-K Ranking System

System Design · Uber · Medium

Design an object-oriented, real-time Top-K ranking system. The system continuously receives score updates for a large set of entities, for example users, drivers, restaurants, or products. Each entity has a unique ID and a single numeric score. Your design should expose a clean object-oriented API and support efficient insertion, update, removal, and top-K retrieval as scores change over time. The system must support these operations: update(entity_id, new_score): insert a…

Checking your access…