What belongs in a system design diagram
Keep to four kinds of things:
- Clients: browsers, phones, other services.
- Entry points: DNS, CDN, load balancers, API gateways.
- Services: the programs that do the work.
- Data: databases, caches, queues and file storage.
Arrows show requests and data flow. Solid arrows are calls that wait for an answer; dotted arrows are messages that do not wait, such as a queue.
Example 1: a URL shortener
The classic interview question. Writes are rare, reads are very frequent, so a cache sits in front of the database.
What to say about it: short codes are generated with a counter or a hash, the cache serves popular links, and clicks go to a queue so redirects stay fast.
Example 2: a chat app
What to say about it: the gateway keeps connections open, the message service stores and fans out messages, and offline users get a push notification.
Example 3: video upload and processing
Tips for clear architecture diagrams
- Left to right for requests, top to bottom for pipelines.
- One colour per layer: clients, entry, services, data.
- Label only what is not obvious. "HTTPS" on every arrow adds noise.
- Use line jumps where lines cross, so each path stays readable.
- Group with frames: draw a frame around services in one region or one team.
- Present it step by step: Chalkline's presenting can reveal one layer at a time, which works well in interviews.
Draw yours
Type the boxes as text in Chalkline (the examples above are plain Mermaid flowcharts), or drag shapes and icons from the Assets panel. Switch to sketch style for a whiteboard interview feel, or clean style for a design document, and export to PNG, SVG, PDF or PowerPoint. To have an AI assistant draw the first version for you, see use Chalkline with AI assistants.