15
Performance @RodolfoFadino

Performance Web

Embed Size (px)

DESCRIPTION

Apresentação sobre performance de aplicações web, onde a responsabilidade é de todo o time.

Citation preview

Page 1: Performance Web

Performance

@RodolfoFadino

Page 2: Performance Web
Page 3: Performance Web

! Instantâneo

Page 4: Performance Web

Soma de fatores

Back-End• Cache• Thread• Debug/Release• SQL• IO• Network• ...

Front-End• CSS• JS• IMG• Headers• Minified• CDN• Proxy• Cookies• ...

Page 5: Performance Web
Page 6: Performance Web

• “…only 10-20% of the total end-user response time is spent getting the HTML document to the browser. You need to focus on the other 80-90% if you want to make your pages noticeably faster…”

Page 7: Performance Web

Anatomia de uma requisição HTTP

• DNS Lookup• Initial Connection– Keep-Alive Header

• Time to First Byte• Content Download

Page 8: Performance Web

14 regras• Rule 1 - Make Fewer HTTP Requests• Rule 2 - Use a Content Delivery Network• Rule 3 - Add an Expires Header• Rule 4 - Gzip Components• Rule 5 - Put Stylesheets at the Top• Rule 6 - Put Scripts at the Bottom• Rule 7 - Avoid CSS Expressions• Rule 8 - Make JavaScript and CSS External• Rule 9 - Reduce DNS Lookups• Rule 10 - Minify JavaScript• Rule 11 - Avoid Redirects• Rule 12 - Remove Duplicate Scripts• Rule 13 - Configure ETags• Rule 14 - Make AJAX Cacheable

Page 9: Performance Web

Ok, eu sei as 14 regras, e dai?• Rule 1 - Make Fewer HTTP Requests• Rule 2 - Use a Content Delivery Network• Rule 3 - Add an Expires Header• Rule 4 - Gzip Components• Rule 5 - Put Stylesheets at the Top• Rule 6 - Put Scripts at the Bottom• Rule 7 - Avoid CSS Expressions• Rule 8 - Make JavaScript and CSS External• Rule 9 - Reduce DNS Lookups• Rule 10 - Minify JavaScript• Rule 11 - Avoid Redirects• Rule 12 - Remove Duplicate Scripts• Rule 13 - Configure ETags• Rule 14 - Make AJAX Cacheable

Page 10: Performance Web

Quando foi a última vez que você usou o YSlow ou Page Speed?

Page 11: Performance Web
Page 12: Performance Web

Vamos fazer um projeto para isso

#SóQueNão

Page 13: Performance Web

Backlog

Page 14: Performance Web

Melhorar a performance é uma responsabilidade nossa (time)

Page 15: Performance Web

Demo