Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Handling web servers of high traffic sites

8,847 views

Published on

A
Seminar
On
Handling High Traffic Websites

Handling web servers of high traffic sites

  1. 1. Handling High Traffic Websites<br />A<br />Seminar<br />On<br />Handling High Traffic Websites<br />By<br />AshishKumar aka Ashfame<br />CP06023 / 06EJECS022<br />
  2. 2. Processing Load<br />
  3. 3. What slows down?<br />
  4. 4. Areas to improve<br />
  5. 5. On-Site Improvements<br />DNS Lookups<br />SERVER<br />SERVER<br />SERVER<br />ashfame.com/code.js<br />blog.ashfame.com/style.css<br />bbninja.com/guide.pdf<br />
  6. 6. On-Site Improvements<br />HTTP Requests<br />SERVER<br />blog.ashfame.com<br />
  7. 7. On-Site Improvements<br />CSS Sprites<br />
  8. 8. On-Site Improvements<br />Minify CSS<br />
  9. 9. On-Site Improvements<br />Minify JS<br />
  10. 10. Browser Cache<br />On-Site Improvements<br />Browser Cache<br />SERVER<br />blog.ashfame.com<br />
  11. 11. On-Site Improvements<br />Reduce Image size (Image format)<br />Use Content Distribution Network (CDN)<br />Gzip Compression<br />JIT Approach – CSS at top | JS at bottom<br />Avoid CSS expressions<br />
  12. 12. Server Side Improvements<br />Employ Caching<br />
  13. 13. Server Side Improvements<br />Setup a Proxy Server<br />Database Server<br />Back End Server (Apache | IIS)<br />Front End Server (Nginx)<br />HTTP Client<br />
  14. 14. Server Side Improvements<br />Master Slave DB Setup<br />Master<br />Slave 1<br />Slave II<br />Slave III<br />Heavy Load<br />Usual Load<br />
  15. 15. Server Side Improvements<br />Load Balancer<br />SERVER1<br />SERVER II<br />SERVER III<br />SERVER IV<br />SERVER V<br />SERVER VI<br />Load Balancer<br />Requests (Heavy Load)<br />
  16. 16. Server Side Improvements<br />RAID Configuration<br />Threaded Model over Processes Model<br />MySQL (Database Server) Tweaking Settings<br />MySQL Storage Engine (InnoDB | MyISAM)<br />Avoid hitting Swap (I/O) at all cost<br />
  17. 17. Your Approach<br />
  18. 18. Case study - Google<br />
  19. 19. Case study - Facebook<br />
  20. 20. Case study - YouTube<br />
  21. 21. Queries?<br />

×