Design Live Cursor and Selection Presence for Google Sheets Collaborators

Last updated: November 29, 2026

Quick Overview

Design how Google Sheets shows each collaborator's active cell, selection range, and colored cursor in real time for everyone editing the same spreadsheet.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Design how Google Sheets shows each collaborator's active cell, selection range, and colored cursor in real time for everyone editing the same spreadsheet.

Asked in Google screens for Workspace and frontend-heavy teams. The interviewer is checking that you keep presence separate from the document's operational transform log and that you throttle high-frequency updates sensibly.

What the Interviewer Expects
  • Keep cursor presence out of the durable edit log
  • Throttle and coalesce cursor updates on the client
  • Route all collaborators of a file to the same session server
  • Handle remote cursors when rows are inserted or deleted
  • Expire presence when a tab closes or goes idle
Key Topics to Cover
ephemeral state
session affinity
throttling
position transforms
websockets
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
  • What happens to a remote selection when someone inserts rows above it?
  • How would you scale to a sheet with 200 viewers during an all-hands?
  • How do you assign stable colors to collaborators?
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

Show for each active collaborator: name, color, active cell, and selected range, updated within ~200 ms. Typical session: 2 to 10 editors; occasional large sessions with 100+ viewers. Presence is neve...

High-Level Design
  • Each open sheet is assigned to one collaboration session server (consistent hash on file_id), the same server that sequences edits.
  • Clients send presence {sheet_tab, cell, range, revision} m...

Submit Your Answer
Markdown supported