54. Request a page (HTTP Request)
deliver static page
Request
Delivering static content
Placeholders for dynamic parts.
Cache-Control headers
Ajax call request dynamic parts
and transfers the id of the currently visited product
JSON response with dynamic content
Replace placeholder
Write session id to cookie
Render the page
Browser Varnish Application
56. Request a page (HTTP Request)
deliver static page
Request
Delivering static content
Placeholders for dynamic parts.
Cache-Control headers
Ajax call request dynamic parts
and transfers the id of the currently visited product
JSON response with dynamic content
Replace placeholder
Write session id to cookie
Render the page
Browser Varnish Application
59. Reduce
Number of Requests
… hitting your application
Don’t AjaxDo Ajax
3xx
4xx
5xx
Cache other
status codes
http://example.com/
?utm_source=T3CON
&utm_medium=slides
Normalize URLsUse a CDN
62. DatabaseThat’s not so easy…
offload the
database
less queries
(caching!)
more efficient
queries
(indexes,…)
scaling
sharding
master/slave
Percona Toolkit
(slow) query log