LESSON 05 · Concrete flows

Walk through real requests

Trace writes and reads to find gaps that boxes alone conceal.

SYSTEM VIEW

The decision path

Diagram view
Swipe or scroll to explore the full diagram
Trace the two important journeysWalk through a write and a read in order, naming what each step returns and what can fail.Trace the two important journeyswrite pathread pathWrite requestcreate or changeValidate & persistcheck · store · confirmWrite responsesuccess or errorRead requestretrieve a viewFetch & shapefind · authorize · formatRead responsedata or errorA box diagram is incomplete until a real action can travel through it.
Walk through a write and a read in order, naming what each step returns and what can fail.
Follow how each decision narrows and strengthens the design.
THE IDEA

How it works

A flow is one request traced from start to finish. Boxes and arrows can look complete while hiding who does what, so walk through a real example. The read and write paths may place very different pressure on storage and computation.

Take a feed, with invented names and times. At 12:00:00 Ana publishes a post: the client sends the request, the service validates it, writes a row to the database, and confirms. At 12:00:02 Ben, her friend, opens his feed: the service looks up the 300 accounts he follows, fetches their recent posts, sorts them, and returns the first 20. Now suppose reads go to a read replica, a copy of the database that receives changes after a delay. If that copy is three seconds behind, Ben does not see the post, and Ana may not see her own. The walkthrough has found a product question: is a short delay acceptable, and should authors see their own posts at once?

Use concrete examples to test the arrows. Ask what happens with an image, a person with no recent posts, or a retry after a timeout. These reveal missing responsibilities while the blueprint is cheap to change. Postgres and MySQL read replicas commonly lag in this way, so the question is a practical one. You cannot trace every path and should not try: one important write, one important read, and the riskiest edge case usually earn the time spent.

DECISION POINT

A diagram has a feed API and database, but nobody knows when a new post appears to friends. What is missing?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • Trace at least one important write and one read from start to response.
  • Concrete requests expose missing data movement and edge cases.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 2
ApplyQUESTION 01

Which pair of walkthroughs best tests a simple feed design?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 2 checkpoints answered correctly to complete this lesson.