Glossary#
| Term | Plain meaning | Chapter |
|---|---|---|
| URL | full web address: scheme, host, port, path, query, fragment | 1 |
| percent-encoding | writing special characters as % + hex bytes | 1 |
| DNS | the internet's directory from names to IP addresses | 2 |
| domain / TLD / subdomain | a name / its last part (.app) / a part in front (api.) | 2 |
| recursive resolver | does lookups for you and caches (8.8.8.8, 1.1.1.1) | 2 |
| authoritative name server | holds a domain's real records | 2 |
| root servers / anycast | top of DNS / many machines sharing one IP, nearest answers | 2 |
| DNS TTL | seconds an answer may be cached | 2 |
| A / AAAA / CNAME / MX / TXT / NS | IPv4 / IPv6 / alias / mail / text / name servers | 2 |
| apex | the bare domain (studybuddy.app) | 2 |
| HTTP / client / server | the web's request-response protocol / asker / answerer | 3 |
| request line / status line | GET /path HTTP/1.1 / HTTP/1.1 200 OK | 3 |
Host header | which website on a shared IP | 3 |
| chunked encoding | sending a body in sized pieces | 3 |
| GET / POST / PUT / PATCH / DELETE | read / create / replace / change part / remove | 4 |
| safe / idempotent | changes nothing / same effect if repeated | 4 |
| idempotency key | unique ID letting the server spot retried requests | 4 |
| status code families | 1xx info, 2xx success, 3xx redirect, 4xx client error, 5xx server error | 5 |
| header / body | metadata label / contents | 6 |
| MIME type / Content-Type | what kind of data the body is | 6 |
| JSON | text format for structured data | 6 |
| serialization / deserialization | data → text/bytes / back again | 6 |
| stateless | each request stands alone | 7 |
| cookie / session | small data the browser returns on each request / the server's record it points to | 7 |
| HttpOnly / Secure / SameSite | no JS access / HTTPS only / not sent cross-site | 7 |
| Cache-Control / max-age / no-store | caching rules / how long / never cache | 8 |
| ETag / 304 Not Modified | version tag / "your copy is current" | 8 |
| multiplexing / stream | many requests at once on one connection / one of them | 9 |
| HTTP/1.1 / HTTP/2 / HTTP/3 | text over TCP / binary multiplexed over TCP / over QUIC | 9 |
| symmetric encryption / AES | one shared key / the standard cipher | 10 |
| asymmetric / public & private key | key pair: share the public, hide the private | 10 |
| Diffie–Hellman / ECDHE | agreeing a shared secret over an open channel | 10 |
| digital signature | proof of who made something and that it's unchanged | 10 |
| certificate / CA / chain | "this key is this domain's", signed / the signer / root → intermediate → site | 10 |
| TLS / SSL / HTTPS | encryption protocol / its old name / HTTP over TLS | 11 |
| SNI | the site name sent in the TLS hello | 11 |
| forward secrecy | past traffic stays safe if a key is stolen later | 11 |
| HSTS | "always use HTTPS for this site" | 11 |
| TLS termination | a proxy handles TLS; app behind it gets plain HTTP | 11, 12 |
| forward / reverse proxy | acts for clients / acts for servers | 12 |
| load balancer | spreads requests across app copies | 12 |
| CDN / edge | worldwide caching proxies / one location of them | 12 |
| X-Forwarded-For | header carrying the real client IP behind a proxy | 12 |
Cheat Sheet#
Methods
GET read (safe, idempotent) · POST create (neither) · PUT replace (idempotent)
PATCH partial update (not guaranteed idempotent) · DELETE remove (idempotent)
retry automatically only if idempotent · otherwise use an Idempotency-KeyStatus codes
200 OK · 201 Created · 204 No Content · 301/308 moved permanently · 302/307 temporary · 304 Not Modified
400 bad request · 401 who are you? · 403 not allowed · 404 not found · 409 conflict · 422 invalid data · 429 slow down
500 app crashed · 502 upstream sent garbage/reset · 503 unavailable · 504 upstream too slowRound trips for a fresh HTTPS visit
DNS (0 if cached) + TCP 1 RTT + TLS 1.3 1 RTT + request 1 RTT HTTP/3: TCP+TLS merged into 1 RTTCommands
dig example.com DNS lookup (+short for just the IP, +trace to watch the full walk)
nslookup example.com simpler DNS lookup
curl -v https://example.com full request/response with TLS details
curl -I https://example.com response headers only
openssl s_client -connect example.com:443 -servername example.com inspect the certificateTry This Yourself#
Watch DNS walk the tree. Run
dig +trace studybuddy.app— or any real domain, e.g.dig +trace github.com. Find the root servers answering, then the TLD servers, then the authoritative servers. Then rundig github.comtwice and watch the TTL count down.Read a real HTTP exchange. Run
curl -v https://example.com -o /dev/null. Identify: the TCP connect line, the TLS version and certificate subject, the request line andHostheader (lines starting>), the status line and response headers (<), and whether a CDN answered.Tell the story. Set a 3-minute timer and explain Chapter 13 out loud without notes. Record yourself. Listen for the steps you skipped or rushed, and practise again tomorrow.