Skip to content

ONE QUESTION. YOUR REASONING.

Design Google Docs

Design Google Docs: many people edit the same document at once, see each other’s changes and cursors live, and can look back at its history.

System designCollaborationStaff

YOUR BRIEF

What to work through

Work through google Docs as a spoken system design interview. Start by clarifying the scope, sketch a working design and explain the trade-offs behind your choices.

  • Create a document
  • Several users edit the same document at once
  • Everyone sees the others’ changes in real time
  • See other users’ cursors and who is present
  • View the document’s history

BEFORE YOU START

Constraints to discuss

  • Scale to millions of open WebSocket connections
  • Every copy of a document converges to the same text
  • Edits show up for others with low latency
  • Tolerate short offline periods without losing edits
Need a starting point?

Watch for these common gaps as you prepare:

  • Sending the whole document on every keystroke
  • Last write wins on the whole document
  • Storing cursor positions in the database
  • No answer for which server owns a document
  • Operations with no base version, so the server cannot transform them
Read: System design questions and who asks them

Why this question is in the collection

These sources connect the problem to company interview reports or preparation guides. They do not guarantee what a company will ask you.

KEEP GOING

Your next question

Storage, files and linksDesign BitlyInfrastructure and platformDesign a rate limiterInfrastructure and platformDesign an A/B testing platformInfrastructure and platformDesign an ad click aggregator
Browse the collection
01

Pick a question

Read the brief and choose what you want to work on.

02

Talk it through

Explain your thinking. Respond to follow-ups. Draw when a design needs it.

03

Find your next improvement

Use the feedback from your interview to decide what to practise next.