Chalkline / Guides / System design diagram examples

System design diagram examples you can copy

A good architecture diagram shows how requests flow and where data lives, without drowning in detail. Here are three classic examples, how to read them, and how to draw your own.

Updated 7 November 2026 · 2 minute read

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.

URL shortener: reads served from cacheURL shortener: reads served from cacheUserLoad balancerShortener APIRedis cacheKey value storeClick analytics queueAnalytics warehouse
URL shortener: reads served from cacheOpen this example in Chalkline →

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

Chat: live messages over websockets, history in a databaseChat: live messages over websockets, history in a databasePhoneWebSocket gatewayBrowserMessage serviceMessage storePush notification queuePush serviceOnline status cache
Chat: live messages over websockets, history in a databaseOpen this example in Chalkline →

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

Upload once, process in the backgroundUpload once, process in the backgroundCreatorUpload serviceRaw video storageTranscode queueTranscode workersProcessed videosCDNViewers
Upload once, process in the backgroundOpen this example in Chalkline →

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.
Practise presenting a designFrames become slides, and P opens presenter view with notes
Open the example

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.