Diagrams guide

How engineers can use a whiteboard for system design

Draw the design from Mermaid text, review it live with pinned comments, then export it for the design doc. A 45-minute system design review for engineers.

Diagrams · · 5 minute read

The short answer

  • Write the diagram as Mermaid text, so it can live in the repository beside the code.
  • Collect questions as comments a day ahead, then review them live for 45 minutes.
  • Export the agreed diagram for the design doc, with the date in its caption.

A finished example

This is what the System diagram template can look like once it is filled in. This one is for an online shop’s systems.

An example made up for this guide. Your own board starts with the headings and prompts, and you add the notes.
Read the example as words
On the board
Person: People
Web page: Website
Phone app: Phone app
Server: Service
Database
File store
Payment service
Notes
Orders go from the app to the service
Photos live in the file store
Card details go only to the payment service
How the boxes are joined
People leads to Website
People leads to Phone app
Website leads to Service
Phone app leads to Service
Service leads to Database
Service leads to File store
Service leads to Payment service

Draw it from text, review it live, keep the text

Engineers can use a whiteboard for system design by drawing the design from Mermaid text and reviewing it live with the team. The agreed diagram is then exported for the design doc, and the text goes into the repository.

Hand-drawn boxes are fine for the first ten minutes of thinking. For a design other people will review and maintain, a diagram drawn from text is easier to change and to compare later.

This guide is for an engineer or tech lead writing a design for a new service, or a significant change to an old one. You will end with a diagram the team reviewed, a set of answered questions and an image ready for the design doc.

On doodleboard, Diagram from text (Mermaid) is under More, on every plan. Changes reach everyone on the board as they happen, and each reviewer's cursor shows where they are looking.

From Mermaid text to a reviewed diagram

Allow an hour to draft and a 45-minute slot for the review. The review works best two or three days before you plan to start building.

  • Write the first draft as Mermaid text in your editor. Start with what people will ask about: services, data stores, queues and outside systems.
  • On the board, choose More, then Diagram from text (Mermaid). Paste the text, and the board lays it out as shapes and arrows.
  • If you would rather sketch boxes by hand first, start from the System diagram template on doodleboard.
  • Draw a frame round each trust boundary, such as "Public internet" and "Private network", and title it.
  • Beside the diagram, add a sticky with three lines: what changes, what stays the same, what we are not doing.
  • A day ahead, ask reviewers to pin questions as comments on the exact box or arrow. On Team, everyone with a seat can comment.
  • Review, 45 minutes: 5 for the author's walkthrough, 25 on comments, 15 on the riskiest path. Run the timer for each part.
  • Use Bring all in the session bar to move everyone to the part under discussion.
  • Answer each comment with "Changed", "Not changing because..." or "Follow-up ticket", then resolve it.
  • Update the text and paste the new version beside the old diagram. Export the board as an image for the design doc.

Order tracking for an online grocer

Take, as an example, a backend team of six at an online grocer. Customers kept phoning to ask where their shopping was. The tech lead wrote a design for an order tracking service that sends a text at each stage.

Her first Mermaid draft had nine boxes. On the board, she drew two frames round them: the grocer's own network, and the text message supplier outside it.

Four reviewers pinned 17 comments the day before. Five clustered on one arrow: what happens when the text supplier is down? The review gave its last 15 minutes to that arrow.

The answer was a retry queue with a limit, plus a status page customers could check instead. That added two boxes. She pasted the updated text as a second diagram beside the first, so the change was easy to see.

Every comment ended resolved, with a reply. Three said "Follow-up ticket", with the ticket number. The design doc got the exported image, dated in its caption. The Mermaid text went into the repository next to the service's code.

Review traps that waste a design afternoon

No boundaries. A diagram with every box floating in one space hides the key question: what crosses from outside to inside? Draw frames for networks, accounts or owning teams before the review.

One diagram for every reader. The view an on-call engineer needs is not the one a product manager needs. Make two frames: a context view with five boxes, and the detailed view.

Naming arguments. Reviewers can lose twenty minutes on what to call a service. Park names in a comment that starts "Naming:" and settle them after the review.

A diagram that drifts from the code. Six months on, the picture shows a queue that was removed in March. With the Mermaid text in the repository, the change that removes the queue can update the diagram too.

Five people looking at five places. Zoomed into different corners, reviewers hear different discussions. Use Bring all, or ask everyone to follow the author by selecting their picture.

What a live board adds to design review

A design review is a conversation about one picture. A live doodleboard makes sure everyone is looking at the same part of it at the same moment.

  • Text in, diagram out. Diagram from text lays out shapes and arrows from Mermaid, on every plan. Text is easy to compare between versions.
  • The same view for everyone. Changes reach everyone as they happen, with who made them. Follow the author, or bring everyone to you.
  • Questions pinned to the box. Comments go on any shape or arrow, take replies and can be resolved. Mention a teammate and they get it by email.
  • Hand-drawing when you need it. Shapes, frames and connectors with five arrow styles sit on the doodleboard tool bar.
  • Out to the docs. Export an image, a PDF, or a PDF with a page per frame.
  • With Solo or Team, doodlebot can turn a photo of a whiteboard sketch into shapes, or a spoken description into a diagram.

For a team where every reviewer comments and edits, Team fits, because everyone with a seat edits. On Free and Solo, the author edits and reviewers look.

Questions people ask

Should system diagrams be drawn by hand or from text?

Sketch by hand for the first rough idea. Once other people will review and maintain the diagram, draw it from text such as Mermaid. Text can sit with the code and be compared between versions.

How long should a design review meeting be?

Forty-five minutes suits one service or one significant change. Collect comments a day ahead, spend most of the meeting on them, and keep fifteen minutes for the riskiest path through the system.

Can I paste Mermaid into doodleboard?

Yes, on every plan. Choose More, then Diagram from text (Mermaid), and type or paste it. The board lays it out as shapes and arrows, and you can add frames and comments around it.

How do I get the diagram into our design document?

Export the board as an image or a PDF from the board menu. Put the date in the caption, and keep the Mermaid text in the repository so the next change starts from it.

Features: More than sticky notes

Put it on a shared whiteboard

Start for free with one board and up to three people, or try every feature for 7 days.

Start for freeSee pricing