Figma lets many people edit the same design file at once, each seeing the others' changes as they happen. When its co-founder Evan Wallace explained the system in October 2019, the surprise was how little machinery it used: no operational transformation, no full CRDT, just a central server and a rule that the last value to reach it wins, applied to one property at a time.
It is a good case study because it shows a team reading the research, understanding what the general algorithms are for, and then choosing something simpler that fits its own data.
The setup: clients, WebSockets and one process per file
Figma released multiplayer editing on 28 September 2016. Before that, by its own account, the editor downloaded the whole file, edited it locally and periodically uploaded it again. That model let people overwrite each other's work without noticing, and it is what multiplayer replaced.
The 2019 post describes the architecture as plain client-server. Clients are web pages. Each one talks over a WebSocket to a cluster of servers, and the servers run a separate process for every document that is open. Everyone editing a given file is connected to the same process.

Opening a file downloads a copy of it. After that, changes flow both ways over the socket. A client can lose its connection and keep editing. When it reconnects, it downloads a fresh copy, reapplies its offline edits on top, and carries on. Figma points out that this makes connecting and reconnecting simple. All the difficulty is in keeping already-connected clients in agreement.
The system covers only the contents of the design document. Comments, users, teams and projects are stored in Postgres and synchronised by a separate mechanism.
Before touching the real product, the team built a throwaway prototype: a web page that simulated three clients and a server and displayed the whole system's state, so they could try out slow and disconnected clients and watch what happened.
Why not operational transformation, and why not a full CRDT
Real-time collaboration is old. Figma's post traces it back at least to Douglas Engelbart's demonstration in 1968. Two families of algorithm dominate the modern literature.

Operational transformation (OT) is the approach made famous by Google Docs. Every edit is an operation, such as "insert x at index 0". When two operations are made at the same time, each is rewritten against the other so that both sides end in the same state. Figma's 2017 post gives the standard example: a delete at index 1 must shift to index 2 if someone else inserted a character at index 0 first. OT is efficient for long text. Its cost is complexity. Each kind of operation needs a correct transform against every other kind, so the work grows with the square of the number of operation types, and the post cites researchers who found the correctness proofs complicated and error-prone. Figma judged that it was not building a text editor and did not need that power.
CRDTs (conflict-free replicated data types) take the opposite route. The data structure itself is designed so that replicas can be updated independently, in any order, and still converge. Figma's post gives two simple examples: a grow-only set, and a last-writer-wins register that holds one value plus a timestamp and a peer ID to decide which write is latest. CRDTs are designed for systems with no central authority, and the post argues that this guarantee carries performance and memory overhead that cannot be avoided.
Figma has a central authority: its server. So it kept the CRDT way of thinking and dropped the parts that exist only to cope with the absence of a server. The post is careful to say the result is inspired by several CRDTs but is not one.
Last writer wins, one property at a time
A Figma document is a tree of objects, much like the DOM of a web page: a root, pages under it, and layers nested under those. Every object has an ID and a set of properties. The post describes the whole document as a map from object ID to a map from property to value. As an illustration (not Figma's actual format):
"12:5" -> { type: "RECTANGLE", x: 40, y: 80, width: 200, fill: "red" }
"12:6" -> { type: "TEXT", x: 40, y: 20, characters: "Sign in" }
The server keeps the latest value any client has sent for each property of each object. That gives a very small definition of a conflict:
- Two people change different properties of the same object: no conflict, both stick.
- Two people change the same property on different objects: no conflict.
- Two people change the same property of the same object: the value that reaches the server last wins.
This is a last-writer-wins register per property. A true CRDT register needs timestamps to define "last". Figma does not, because the server sees changes in a single order and that order is the definition.
The price is that values are atomic. Suppose a text layer says "B", one person changes it to "AB" and another to "BC" at the same moment. The result is "AB" or "BC", never "ABC". Figma accepted that in 2019 on the grounds that it is a design tool, not a text editor.
There is one subtlety on the client. To feel instant, a client applies its own changes immediately without waiting for the server. Now imagine you set a fill to blue, and before the server has acknowledged it, an older value (red, from someone else) arrives. Applying it would make the shape flash red and then blue again when your own change comes back. So the client ignores incoming values for any property on which it has an unacknowledged change of its own. Its local value is the newest one it knows of in the server's order, so it is the best guess at the final answer.
Creating and deleting objects
Creating and removing objects are explicit actions. Writing a property to an ID that does not exist does not bring an object into being.
New objects need IDs, and the server cannot hand them out because creation has to work offline. So every client is given a unique client ID, and the IDs it generates include that number. Two clients can never mint the same ID.
Deletion is where Figma departs most clearly from textbook CRDTs, many of which keep a marker, called a tombstone, for everything ever deleted. When an object is removed in Figma, the server discards all of its properties. The data survives in one place only: the undo buffer of the client that deleted it. If that user presses undo, their client sends the object back, properties and all. The stated reason is practical: long-lived documents should not grow for ever.
The tree: reparenting and ordering
Figma calls this the most complicated part. Dragging a layer into a different frame changes its parent, and two people can do that to related objects at the same time.
The first decision is where the relationship is stored. If each parent held a list of children, two simultaneous moves of one object could leave it in two lists. So the link lives on the child: each object has a property naming its parent. A single-valued property under last-writer-wins can only ever name one parent.
That removes duplicates but allows something worse. Parent links are edges in a graph, and concurrent edits can form a loop: one person makes A a child of B while another makes B a child of A. A loop is not a tree. The server therefore checks every parent change and rejects any that would create a cycle.
A client cannot veto what the server sends, so it may briefly hold a loop made of its own unacknowledged move and one from the server. Figma's answer is deliberately plain: the objects involved are detached from the visible tree until the server's rejection arrives. Something vanishes for a moment and then reappears in the right place. The post calls this rare and temporary, and not worth a cleverer fix.
Order among siblings uses a technique Figma calls fractional indexing. Each child carries a position that is a fraction strictly between 0 and 1, and children are drawn in order of position. To drop a layer between two others, give it the average of their positions. Only the moved object changes. Nothing else is renumbered, so there is nothing for a concurrent edit to collide with.
Two details from the 2017 post make this workable. Positions are arbitrary-precision values stored as strings, not 64-bit floats, so repeated halving does not run out of digits. And if two clients insert at exactly the same spot they compute the same average, so the server assigns the second one a different, unique position. Finally, the parent link and the position are stored together as one property, so a move updates both atomically.
What Figma accepted, and what changed over time
The trade-offs are stated openly in the posts: no merging inside a text value, an object that may flicker out of view during a rare cycle, concurrent inserts at one spot that may interleave, and undo that needed its own rule. For undo, the principle Figma gives is that if you undo many steps, copy something, and redo back to the present, the document should end up unchanged.
The server itself changed. According to Figma's May 2018 post, the multiplayer server was originally TypeScript on Node.js, with several documents sharing each worker. One slow operation on a very large file could stall every other document on that worker. The team rewrote the performance-sensitive part in Rust, run as one child process per document, and reported that serialisation became more than ten times faster. The synchronisation rules stayed as they were.
Everything here is dated: the design as Figma published it between 2016 and 2019. Later changes are outside these sources.
The computer science underneath
Collaborative editing as a design problem. The lesson Design Collaborative Document Editing: Two Cursors, One Document sets out the general problem and the OT and CRDT answers. Figma is the worked counter-example: shrink the unit of conflict until conflicts are rare, and a much simpler rule is enough.
CRDTs and convergence. A last-writer-wins register and a grow-only set are the first CRDTs anyone learns, and both appear in Quorums, Vector Clocks and CRDTs: Living Without a Leader. That lesson's subtitle is the key to Figma's choice. Vector clocks and tombstones exist because there is no leader to order events. Figma has one, so the server's arrival order replaces them.
Consistency models. Clients apply edits before the server confirms them, so at any instant two screens may differ. What the design promises is that they converge once messages stop. That is eventual consistency, covered in CAP and Consistency Models.
Persistent connections. The server must push other people's edits to you without being asked, which plain HTTP request and response cannot do. Real-Time Delivery: Polling, SSE and WebSockets compares the options.
Trees are graphs with a rule. Rejecting a bad reparent is cycle detection: walk up from the proposed parent, and if you reach the object being moved, refuse. The traversal ideas are in Graphs: Adjacency Lists, BFS and DFS on a Worked Example.
What an interviewer could ask from this
Why did Figma not use operational transformation? OT is built for long text sequences and is hard to implement correctly, since every pair of operation types needs a transform. A design file is mostly independent properties on objects, which do not need it.
Why not a full CRDT? CRDTs pay in metadata and memory to work without any central authority. Figma routes every change through a server, so the server's ordering replaces that machinery.
Two users edit the same rectangle at once. What happens? If they changed different properties, both changes apply. If they changed the same property, whichever reached the server last is the final value for everyone.
How do clients create objects offline without ID collisions? Each client has a unique client ID that is part of every object ID it generates.
How would you keep an ordered list in sync without renumbering? Give each item a fractional position and insert at the midpoint of its neighbours. Use arbitrary-precision values, and have the server break ties when two inserts choose the same position.
How do you stop two concurrent moves from corrupting a tree? Store the parent on the child so an object has only one parent, and have the server reject any change that would create a cycle.
Takeaways
- Choose the unit of conflict carefully. Per-property last-writer-wins makes true conflicts uncommon in a design file.
- A central server that orders events removes the need for timestamps, vector clocks and tombstones.
- Knowing the research still pays: Figma's design is CRDT ideas with the decentralised parts taken out.
- Simple rules have visible costs, such as no merged text and a brief flicker on a cycle. State them and decide they are acceptable.
- Prototype the hard part in isolation first, as Figma did with its three-client simulator.












