Figma Multiplayer
Figma describes a centralized collaboration design inspired by CRDTs, not operational transformation.
Figma describes a centralized collaboration design inspired by CRDTs, not operational transformation. Its document contains objects and properties; the server resolves concurrent changes to the same property in arrival order. Independent properties can change without conflict. The published design also describes reconnecting clients fetching current state and reapplying offline edits. This is a dated account, not a claim about every current Figma feature. Source publication: 2019-10-16. The walkthrough below is an original interview exercise, not an undocumented claim about the company.
Merge independent properties, then name a real conflict
Our independent shape starts {x:0,fill:white}. A changes x to 10 and B changes fill to blue: the authority can retain both {x:10,fill:blue}. If A and B both change fill, choose the winner using the declared server order/version policy. Client clock timestamps alone do not safely establish that order.
A op a7: shape1.x=10
B op b8: shape1.fill=blue
accepted state: {x:10,fill:blue}
two fill writes: apply the specified conflict ruleRead the diagram
A op a7: shape1.x=10; B op b8: shape1.fill=blue; accepted state: {x:10,fill:blue}; two fill writes: apply the specified conflict rule
Keep local pending operations distinct from acknowledged state so an older server echo does not unnecessarily overwrite a newer pending edit. Reconnect supplies a server snapshot/version and revalidates pending intent. Parent/property changes also need acyclic structure and deletion rules; a property merge algorithm alone does not guarantee a valid document tree.
Show answer and explanation
Answer: Text insertion shifts positions and requires its own operation/merge semantics. A shape-property example must not be sold as a complete text CRDT. These are original exercises; the cited company publication describes its own model and historical scope.
Step-by-step reasoning
1. Choose a document model
In this independent whiteboard exercise, represent a shape by object ID and properties such as x, y and fill. A move changes position; a recolor changes fill. Compare this with text insertion, where positions shift after concurrent edits. Do not transfer a text-editor algorithm into a shape editor without identifying the actual operations.
2. Make conflicts visible
Assume A sets fill to blue while B sets fill to red. The authority chooses one final property value under its declared order. If A changes x while B changes fill, preserve both. Write this two-client table before drawing a cluster: the product semantics determine what the synchronization protocol must guarantee.
3. Separate responsiveness from acknowledgement
Apply a local edit immediately but retain its operation identity and acknowledgement state. A response from the server that predates a pending local edit must not cause unexplained flicker. The client needs a rule for pending versus acknowledged values, and a retry must not duplicate an operation.
4. Test reconnect and revocation
Disconnect A, change the document from B, then reconnect A with pending edits. Specify whether deleted objects can be recreated and how stale permissions are checked. A reconnect is not merely reopening a socket; it is reconciling document version, pending intent and authorization.
Contracts and state
The following sketch makes the decision boundary concrete. Field names and capacity assumptions are illustrative; adapt them to the stated product contract.
object(id, parent_id, properties)
pending(client_id, operation_id, property, value)
accepted(document_id, server_sequence, operation_id)
Example: A changes shape.x; B changes shape.fillWorked example
Original exercise: A moves shape S from x=10 to x=20 while B changes its fill from white to red. These operations affect different properties and should both survive. Next, have both set x to different values. Ask the learner to mark the conflict boundary and the authoritative winner. This exercise is intentionally about object properties, not merging two text strings.
Failure walkthrough
Original failure probe: an acknowledgement is lost, then the user reconnects after permission has been revoked. Retry deduplication cannot substitute for authorization. Check permission again, retain the local unsaved intent for user recovery, and reject the server mutation. A document snapshot must not grant continuing edit rights.
Read the diagram
A edits x locally → B edits fill locally → Server accepts independent properties → Both clients reconcile acknowledgements → A reconnects with a pending edit
Decisions and trade-offs
| Decision | Useful when | Cost to explain |
|---|---|---|
| Adopt the mechanism | The same workload constraint is demonstrated | Validate with your own measurements |
| Keep a simpler design | Your scale and guarantees are already met | Monitor the trigger for changing it |
Check your understanding
Why is a server-authoritative property map not the same as a decentralized text CRDT?
Show answer and explanation
Answer: The server supplies a conflict order and the atomic unit is a property value. A decentralized text CRDT must preserve character identities and convergence without relying on that central ordering authority. The data model and guarantees differ.
Primary documentation
Read the first-party engineering account or official technical reference. Company engineering posts describe the scope and date of that publication; the interview reconstruction and scenarios here are original teaching examples.
Continue the connection
Study Google Docs and explain which guarantee from this lesson carries into that topic.
Decision review: Figma Multiplayer
Figma Multiplayer: What it is
This case studies the author’s design-object collaboration model, keeping it separate from a generic character-editing algorithm.
Figma Multiplayer: Why it is needed
Independent property changes and competing writes to the same property have different conflict behavior; reconnect also crosses an authorization boundary.
Figma Multiplayer: When to use it
Use the case to identify the actual object and conflict granularity before selecting a merge model for another product.
Figma Multiplayer: How to use it
For our exercise, give operations identities, merge independent properties and define a deterministic same-property winner rule. Recheck current permissions on reconnect and preserve rejected local intent for user recovery.
Figma Multiplayer: Compare an alternative
A whole-object version conflict policy is simpler but may reject independent edits. A text OT/CRDT has different operation semantics and cannot be inferred merely from this design-object case.
Figma Multiplayer: Published evidence and limits
First-party engineering article — published 2019-10-16.
The author explains a custom collaboration system and its design-object conflict model rather than treating it as ordinary text OT.
The account does not establish that every collaborative document or current Figma feature uses the same model; our reconnect/security fixture is a proposed exercise.
Figma Multiplayer: Worked decision exercise
The following inputs and policies are original exercise assumptions; they are not measurements or undisclosed company behavior.
Shape S starts with x=10 and fill=white. A moves x to 20 while B changes fill to red: independent properties can preserve both. If A and B both set x differently, the selected model must name the conflict and deterministic outcome.
Read the diagram
Shape S: x=10, fill=white; A changes x=20; B changes fill=red; Independent properties can preserve both edits; Two writes to x need an explicit conflict rule
Does recovering a previously accepted operation ID authorize a revoked client to submit a new edit?
Show answer and explanation
Answer: No. Retry lookup and new authorization are separate decisions under the API contract. Reconnect revalidates access; deduplication does not grant permission. A refused update should leave the local work recoverable rather than silently claiming it was saved.
Figma Multiplayer: Check the design
Test independent and conflicting property edits, lost acknowledgements and revoked reconnect. Do not label our chosen tie rule as Figma’s entire current collaboration protocol.
Why is a server-authoritative property map not the same as a decentralized text CRDT?
Your design draft
Clarify assumptions, explain your approach, and test the difficult cases. Save your draft, then compare it with the study notes.
Self-review checklist
Self-guided practice. Automated AI feedback and code execution are not connected.