Skip to content

Design a Collaborative Editor (Google Docs)/Playground

A real-time collaborative editor

Click a part to change it, put something in front of it, or kill it. Turn the traffic up. Every number moves as you go; nothing is graded. 20,000 connections at peak with a tenth typing 5–10 operations a second; the average and four viewers per edit are assumed.

Running
Traffic
CLIENTEditor clientEDGEDocument routerSERVICEDocument ownerDATABASEPostgres op logLOG / STREAMPub/subSERVICEFan-out edgeCLIENTViewersOBJECT STORESnapshot storageWORKERSnapshotter
Requests failing
0%
Backlog growing
none
Instances running
65

What goes through it

OperationOfferedOutcomeWaitUp
Edits15k/sAll served57 ms99.94%
Edits sent to viewers60k/sAll served5 ms99.999%
Snapshotsbackground30/sKeeping up––

Wait is the expected time a caller waits; Up is the share of time every part it waits on is running.

What your changes did

Nothing yet. This is the reference design: change something to see what it buys and costs.

At this traffic

Ask AI what your design does

AI

The numbers above come from a simple model. The AI reads your design, what you changed and these numbers, and explains where it holds and where it fails, citing how the engineers who built it did it. It can be wrong.