A girl and a robot thinking together

Let’s think it through · Start with a story

A girl wants to check the score of a robot competition. Following one request from start to finish shows what each step does.

Break down the process

Follow the numbered steps, then explain them in your own words
  1. Prepare a requestSpecify the competition ID
  2. Transmit itSend it to the service
  3. Process itRead the authorized score
  4. Return and displayThe client presents the result

A network request starts with clear input and ends when its response is received and used correctly.

The server should check parameters and permissions before handling the query. The client should distinguish success, errors, and timeouts, then show an appropriate status.

Some requests change data. Before retrying one, consider whether it might run twice—“send it again” is not always harmless.

Your turn

If a request times out, does that prove the server did not process it?

Have an answer? Click to see the explanation

No. The server may have finished, but the response may not have arrived. Operations that change data need safeguards against duplicate processing.

Takeaway

A network request starts with clear input and ends when its response is received and used correctly.

Try covering the diagram and explaining each step to someone at home. If a step is hard to explain, go back and look at that card again.