This question evaluates expertise in large-scale distributed system design, covering competencies in scalable leaderboard and real-time messaging architectures including data modeling, API design, sharding and replication, low-latency read/write paths, ordering and delivery guarantees, presence, and durable storage.

You are designing services for a large-scale social platform with hundreds of millions of users. Systems must be horizontally scalable, low-latency, and highly available.
Design a leaderboard that supports:
Include APIs, data modeling, read/write paths, handling ties, and scaling across shards.
Design a full-featured messenger application that supports real-time chat, message storage, presence, and scalability. Cover end-to-end flow: client connections, message send/receive, ordering, delivery guarantees, storage, presence, and scale-out.
Login required