Personal notebook
How small
systems work.
I keep short notes on the tools I use, the networks they run on, and what I learn by measuring both.
Field notes
01 NetworksWhat happens before the first byte?
For a fresh HTTPS connection over TCP, the browser may need to look up a name, open a connection and negotiate TLS before sending a request. Then the server needs time to respond.
When a page feels slow, I look at the individual timings in the browser’s network panel. A second load may reuse a connection or a cached answer, so I compare fresh loads separately.
02 ToolsBuilding a shell pipeline one step at a time
Suppose a text file lists one word per line. To count repeated words, I start by looking at a few lines, then check the sorted output before adding the counting step.
sort words.txt | uniq -c
The order matters. The counting tool groups adjacent matches, so sorting first brings identical lines together.
03 MeasurementWhy I keep the slow samples
Imagine five requests taking 20, 21, 22, 23 and 400 milliseconds. The median is 22 milliseconds. That describes a typical request well, but the person waiting for the last one had a very different experience.
For a small test, I keep the individual results and note any failures. That makes it easier to spot bursts of delay when I repeat the test.
About the lab
WYC Lab is my personal space for learning about computing. I write things down here when a small example makes an idea easier to remember.