Computer Science / Unit 10 CS 0570 worked example, 60 to 90 seconds
One Tap, Round Trip
The idea
A single interaction with a modern web app runs the unit's whole communication stack — request, response, encryption, and the small-exchange pattern — and tracing one tap end to end shows each layer doing its one job.
In practice
A rider taps a bus stop on a transit web app. First trip, at session start: the browser formed a request to the app's address and a web server — software at that URL — answered with the page, rendered from markup; the client-server exchange of video 0542, run once. The whole conversation traveled wrapped: HTTPS, video 0543's added layer, so the rider's location and account crossed the wire unreadable to listeners. Now the tap itself — and here the architecture shows its era. No full page reloads. The app is a single-page application: the tap fires one small asynchronous exchange, a request carrying a stop identifier, a response carrying arrival times — a whisper of data where the first web would have refetched everything. The screen updates in place. Count the pattern: one heavy exchange at the start, then many light ones, each wrapped, each through the same request-and-response discipline the Web has run since 1989. Four ideas, one half-second, no step skipped.
Where people slip
Every layer in the trace is separately inspectable — an argument that holds for debugging exactly as it held for teaching.
Your place on the trail
Every lesson rests on earlier ones and opens later ones. Tap any to jump.
Unlocks
- Nothing yet depends on this.
Something wrong in this lesson? Flag it · Sources for Computer Science