Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.8 KB

performance-checklist.md

File metadata and controls

68 lines (51 loc) · 1.8 KB

Performance Optimization Checklist

Frontend

  1. Make Fewer HTTP Requests
  2. Put Stylesheets at the Top
  3. Put Scripts at the Bottom
  4. CSS Sprite
  5. Load Asynchronous Scripts file
  6. Optimize Images:
    • Compress image
    • Resize image
    • Load progressive
    • Size specific, don’t scale

Backend

  1. Database

    • Indexes
    • Avoid (N+1) query
    • Batch loading
    • Transaction
  2. Caching:

    • Fragment caching
    • Query caching
    • Redis caching
  3. Run big process in background jobs

  4. Use DNS: To serve images, assets (Sharding Dominant Domains)

  5. Upgrade Rails, update gems, reduce gem.

Server (Nginx or Apache)

  1. Add an Expires Header
  2. Gzip Components
  3. Using Proxy to Cache on Nginx
  4. Config Worker
  5. HTTP2

Tools for monitor

  • New Relic
  • Pingdom

Tools for measure performance

Resources