Design Friends, Presence and Chat for the Riot Client

Last updated: November 29, 2026

Quick Overview

Design the social backend for the Riot Client: friend lists, real-time presence (online, in champion select, in game) and one-to-one and party chat across all Riot games, at tens of millions of concurrent users.

Riot Games
System Design
Software Engineer
Riot Games
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the social backend for the Riot Client: friend lists, real-time presence (online, in champion select, in game) and one-to-one and party chat across all Riot games, at tens of millions of concurrent users.

A system design round for backend and platform teams, since social features in the Riot Client are shared across League, VALORANT, TFT and 2XKO. The interviewer focuses on the presence fan-out problem, persistent connection management and message delivery guarantees.

What the Interviewer Expects
  • Size connections, presence updates and fan-out
  • Design a connection gateway tier holding persistent sockets
  • Explain presence fan-out and how to bound it
  • Choose delivery semantics and ordering for chat
  • Cover offline messages and multi-device sessions
  • Address moderation hooks and privacy settings
Key Topics to Cover
websockets
pub/sub
presence fan-out
message ordering
sharding
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A streamer with 3,000 friends changes state every few seconds: how do you keep fan-out cheap?
  • How do you deliver a message exactly once to the user's screen given retries?
  • How would you migrate this from an older XMPP based system without downtime?
  • How do you integrate toxicity filtering without adding visible latency?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: add and remove friends, see friends' presence with game-specific detail, send direct and party messages, receive messages sent while offline, block and mute. Non-functional: on the order o...

High-Level Design

Clients hold one persistent TLS connection (WebSocket or a custom protocol) to a gateway fleet; a session registry maps user_id -> gateway node. Services behind it: a friends service (graph stored i...


Submit Your Answer
Markdown supported

Related Questions