StackGrab

Lab 7 · Anatomy of a web app

Where does the page time go?

Trace one slow product page, then change what it does and watch the bars move.

Shown in slow motion · every number is real.

Ticket · slow product page

Users say the product page drags. Which single hop costs the most time?

DNS (cached)
App server
Database
Static files

Nothing traced yet. Make a guess, then load the page to draw its hops.

Trace the baseline

Guess which hop takes the most time, then load the page.

Before anything is drawn: which single step will take the most time?

About this model

Simplified: DNS is already cached; a round trip to the origin is 120 ms for both the HTML and the static files; app work and one query are 10 ms each; static files load together in one parallel round trip. A real page makes many more requests and overlaps them.