Your SlideShare is downloading. ×
Architecture Of Large Scale Websites
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Architecture Of Large Scale Websites

4,984
views

Published on

Architecture Of Large Scale Websites

Architecture Of Large Scale Websites

Published in: Technology

1 Comment
13 Likes
Statistics
Notes
  • Cache frequently accessed data from database close to the web application. Open source in-memory products such as memcached, CSQL Cache can be used to cache frequently accessed data from the database.

    http://www.csqldb.com
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
4,984
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
232
Comments
1
Likes
13
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Architecture of Large-Scale Websites Yu Feng 06/08/2008
  • 2. Agenda
      • Static Content
      • Image Servers
      • Database
      • Cache
      • Mirror
      • Load Balance
  • 3. Static Content
      • Use CMS (Content Management System)
        • Can be managed easily (add/remove/modify)
        • Channels
  • 4. Static Content (cont’d)
      • Make it static as much as possible
        • Dynamic pages are always much slower
        • Static pages are more cache-friendly
        • The ways that high traffic sites do
          • Netease, Sina, Mop
            • Convert dynamic pages to static ones (BBS)
  • 5. Image Servers
      • Use separate image servers
        • Images
          • Small size
          • Large amount
        • Reduce the stress of the main server
        • Can be optimized
          • nginx
          • lighttpd
  • 6. Database
      • Improve the design of your database
        • Tables
      • Tuning
        • Your application
  • 7. Database (cont’d)
      • Use database clusters
        • Oracle
        • MySQL
          • MySQL Replication Master/Slave)
          • MySQL-Proxy
  • 8. Cache
      • Why caching is important?
  • 9. Cache (cont’d)
      • Apache
      • Squid
      • Ncache
      • Memcached
  • 10. Mirror
      • Different entrance
  • 11. Load Balance
      • DNS
      • What is a L4/L7 switch?
  • 12. Load Balance (cont’d)
      • Hardware
        • F5, Aleton
  • 13. Load Balance (cont’d)
      • LVS
      • HAProxy
  • 14. The End Thanks