01 / 12
Taking one data round trip apart
In the first lesson we said a web app is made of two kinds of round trip: the container round trip and the data round trip. To finish this chapter we take one single data round trip and follow what happens inside it.
We split the view into three.
- The sending side … what actually gets sent
- Inside the server … what happens, in what order, between receiving and answering
- After it comes back … how to read the number, and how to draw the screen
Split it up like this and when something goes wrong you can settle which part we are talking about straight away. Were the contents you sent bad, did it fall over inside the server, or is what came back being handled badly? All of them look like "the data is not showing", and the place to fix is completely different.