Problem framing and collaborative design constraints
How Problem framing and collaborative design constraints (understanding) informs Figma architecture and interviewer depth.
Problem framing and collaborative design constraints
Figma is a browser-native vector design surface where multiple designers edit the same scene graph concurrently—frames, components, variants, and auto-layout rules—not a document with linear text. Interviewers probe whether you separate authoritative document state (CRDT or OT log) from ephemeral presence (cursors, selections, viewport) and from heavy assets (images, fonts) that never ride the operational-transform hot path.
The product promise is multiplayer parity: two designers in London and Tokyo see the same pixel result within tens of milliseconds, without fork-merge dialogs on every rectangle drag. Offline or flaky networks must queue local ops and replay without corrupting component instances.
Assume 8M weekly active designers, 120M design files, median file 4.2 MB serialized graph, and 6 concurrent editors on hot enterprise files during critique sessions. Peak edit rates on flagship files reach 400 ops/s aggregate across collaborators.
Java
1 public final class FileKey { 2 public String shardKey(String orgId, String fileId) { 3 if (orgId == null || fileId == null) throw new IllegalArgumentException("required"); 4 return orgId + ":" + fileId; 5 } 6 }
Python
1 def shard_key(org_id: str, file_id: str) -> str: 2 if not org_id or not file_id: 3 raise ValueError("required") 4 return f"{org_id}:{file_id}"
TypeScript
1 export function shardKey(orgId: string, fileId: string): string { 2 if (!orgId || !fileId) throw new Error("required"); 3 return `${orgId}:${fileId}`; 4 }
Key Highlights
- •Scene graph is the source of truth, not pixels
- •Presence is ephemeral; document ops are durable
- •Hot files can exceed 400 aggregate ops/s
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "For Problem framing and collaborative design constraints, I keep assets off the hot op path and enforce file-scoped ordering on a sticky sync shard."
- "If challenged on consistency, I degrade to read-only snapshot view rather than risk split-brain edits."