Building Scalable Web Apps
Upcoming SlideShare
Loading in...5
×
 

Building Scalable Web Apps

on

  • 226 views

Strategies to Scaling out a Non-Scalable Web App

Strategies to Scaling out a Non-Scalable Web App

Statistics

Views

Total Views
226
Views on SlideShare
226
Embed Views
0

Actions

Likes
1
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Building Scalable Web Apps Building Scalable Web Apps Presentation Transcript

    • Kundenname, Präsentationstitel
    • BUILDING SCALABLEWEB APPS
    • ABOUT MEMatías E. Fernández @matiasfrndzHead of Systems and Development
    • WHAT DOES“SCALABLE” MEAN?
    • ≠ efficient usage of CPU≠ efficient usage of bandwidth≠ efficient usage of storage≠ fast page loads in browserSCALABILITY ≠ PERFORMANCE
    • WTF?
    • SCALABILITYIn electronics (including hardware,communication and software), scalability isthe ability of a system, network, or processto handle a growing amount of work in acapable manner or its ability to beenlarged to accommodate that growth.en.wikipedia.org/wiki/Scalability
    • VERTICAL VS.HORIZONTALSCALABILITY
    • VERTICAL SCALINGBigger, faster, stronger!
    • HORIZONTAL SCALINGStart small …
    • HORIZONTAL SCALING
    • HORIZONTAL SCALINGThink BIG!
    • WHY BOTHER?Because web startups tend to dieor grow … really big!
    • EXAMPLES
    • YOUTUBE• Founded in 2005 in a garage• Officially launched in December 2005 with8 million videos watched per day• 100 million views a day in July 2006• Over 4 Billion videos viewed per day inJanuary 2012• 72 hours of video uploaded every minutein May 2012x 12 in7 month!
    • YOUTUBE1 mio10 mio100 mio1000 mio10000 mio200520062012YouTube videos watched per dayNotice the logarithmic scale, bro?
    • TWITTER• Founded in March 2006• Officially launched in July 2006• 400’000 tweets per quarter in 2007• 100 million tweets per quarter in 2008• 65 million tweets per day in June 2010• 140 million tweets per day in March2011, 1’600 tweets per secondx 230 in12 month!
    • TWITTER100010000100000100000010000000100000000200720082010Tweets per dayRecognise the scale?
    • BETTER BE PREPAREDRewriting your web app to be scalableandat the same time scale it to accommodatea 10 to 100 fold of customersin 12 month?Sounds like a challenge!
    • PLAYING FOR TIMEStrategies to Scaling out a Non-Scalable Web AppSemi
    • KEEP THINGS SIMPLEAdd caching reverse proxy to reduce theload on your web app and serverHTTP Accelerator
    • WE ALL START SMALLSeparate database and app server to gainCPU and I/O-performanceApp ServerDatabase Server
    • LET’S START THE PARTYApp ServersRedundant Load Balancerw. HTTP Acc.We still needour database
    • SCALE OUTverticallyverticallyhorizontally
    • SINGLE POINT OF FAILUREThey call me single pointof failure
    • REDUCE SPOF2-Node FailoverCluster highly availability✔
    • Kundenname, PräsentationstitelNine Internet Solutions AGAlbisriederstr. 243aCH-8047 ZürichTel +41 44 637 40 00Fax +41 44 637 40 01info@nine.chQUESTIONS?