← All lessons
Performance
13 lessons you click through step by step
- How QUIC and HTTP/3 workOpen a connection in one round trip, lose a packet without stalling every stream and switch networks mid-download
- How a CPU cache worksFind a byte through L1, L2 and L3, grow the data past each cache, and walk a matrix the fast way
- How Big O notation worksCount the steps five loops take, then push n to a million and see which ones blow up
- How cache-aside worksPut Redis in front of a database, fill it on a miss, expire it with a TTL, and delete the key on every write
- How a browser renders a pageTurn HTML and CSS into trees, boxes and pixels, then see what a reflow really costs
- How service workers workPut a worker between the page and the network, cache what matters, then keep working offline
- How server-side rendering worksCompare CSR, SSR and static pages by what the browser gets and when the content shows up
- How lazy loading worksLoad images as they near the screen, split code with import(), and count the bytes you save
- How debounce and throttle workHold back a burst of keystrokes and scroll events, then count the calls you save
- How HTTP caching worksReuse a file while it's fresh, then revalidate with an ETag
- How a CDN worksFetch a page from far away, then from a nearby edge
- How gzip compression worksSqueeze repeated text into back-references and watch bytes drop
- How database indexes workScan every row, then jump straight to the row with a B-tree