Design a client-server API for a rich document editor
MediumSystem design45 minSWEREPro outline
The question
Design the API between a rich text document editor running in the browser and its backend. Several people can edit the same document. Cover the data model, the operations the client sends, conflict handling and offline edits.
What the interviewer is looking for
- Defines a document model and operations, not just CRUD on the whole document
- Handles concurrent edits with a named approach (operational transform or CRDTs)
- Versioning, acknowledgements and resync after disconnect
- Considers payload size, permissions and presence
- Clear API endpoints or message types
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Meta (general E-level SWE and ML loops, plus MSL / FAIR research roles) question type: design an email server, or a client-server API for a rich document editor.
Reported in: github.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Meta (general E-level SWE and ML loops, plus MSL / FAIR research roles) question.