Whenever you're ready, walk me through how you'd approach this.
Design a ranking system for e-commerce websites that ingests product sales in real time and returns the top 100 sold products in the last 24 hours (flexible window); 50M records/min with duplicates; multi-tenant. Asked in the System design round stage.
Focus on how you would handle real-time ingestion, duplicate events, tenant isolation, and flexible time windows while keeping query latency low. Explain the architecture, ranking logic, and how you would validate correctness and freshness at scale.