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.
A diagram has a feed API and database, but nobody knows when a new post appears to friends. What is missing?
Walk the publishing request into storage and the retrieval request back out. State whether visibility is immediate or follows background work, then update the flow and user experience.
Use this as a guide for self review; written answers are not graded.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.