0
My App is Going Viral, Now What?                                   1
A New Unit of Measurement        1 Instagram             ≈        7.5M MAU*                            2
InstaGrowth: Android Launch Instagram gained nearly 1 million users overnight when               they expanded to Android ...
Draw Something - Social Game  35 million monthly active users in 1 month               about 5 Instagrams   (Instagram tod...
Goes Viral 3 Weeks after Launch      Draw Something by OMGPOP      Daily Active Users (millions) 16 14                    ...
By Contrast, 1/2 an Instagram  The Simpson’s: Tapped Out  Daily Active Users (millions)                                  6
Traditional MySQL + Memcached Architecture● Runas many MySQL machines as you need                                         ...
Limitations of MySQL + Memcached●   To scale you need to start using    MySQL more simply●   Replicating too slow●   Shard...
Lessons Learned•   Use Scalable Architecture•   Be Fast on Your Feet•   Be Connected with Experts•   Learn more about NoSQ...
How to Prepare for GrowthDo Everything Right    What can go wrong?                                            10
What Can Go Wrong?        Murphy’s Law Applies             Shouting in the Datacenter - Fishworks / Sun             http:/...
Speed & Scale Is Important         S3                         HBaseScale                Riak          Cassandra           ...
Couchbase Architectural Promise• High Performance data access• Scale Up/Down Horizontally                                 ...
Scalable Database●On-demand        cluster sizing  ●   Grow or shrink with workload●Easy    node provisioning           Pa...
COUCHBASE SWEETSPOT                      15
Sweet Spot: Fast and Growing Cisco and Solarflare benchmark of Couchbase Server       Latency                    Throughpu...
Things To Look at Evaluating●   Find your Sweet Spot●   Latency & Throughput●   Query Needs    ●   Views (Map/Reduce Index...
Query Needs●   Are Key value look-ups sufficient?●   Or do you need range scans on secondary indexes?    Answers●   Views ...
What color Maserati to get?When your app goes Viral,this is what you should beconcerned about, not your         database. ...
Upcoming SlideShare
Loading in...5
×

CCSF12_My_app_is_going_viral

844

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
844
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Your game or app can go viral at any time\nYou need to be ready to scale and easily scale, it needs to be simple, rolling scale, no migrations\nYOu have to worry about your costs, games are cheap or free, and throughput is important\nYou can scale vertically and horizontally \nWhen you scaling this fast it’s not uncommon to have new hardware and trying new things new, and there are inevitable failures. \nThings that are easy to deal with when you have lots of time, all of a sudden you have to deal with these same things with a lot of pressure and very little time.\n“You’re Database Tier better be Ready for this.” It’s the rate of change. \n\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript of "CCSF12_My_app_is_going_viral"

    1. 1. My App is Going Viral, Now What? 1
    2. 2. A New Unit of Measurement 1 Instagram ≈ 7.5M MAU* 2
    3. 3. InstaGrowth: Android Launch Instagram gained nearly 1 million users overnight when they expanded to Android 3
    4. 4. Draw Something - Social Game 35 million monthly active users in 1 month about 5 Instagrams (Instagram today is waaaay more than 1 Instagram) 4
    5. 5. Goes Viral 3 Weeks after Launch Draw Something by OMGPOP Daily Active Users (millions) 16 14 35+M MAU 12 at peak 10 8 6 4 2 2/6 8 10 12 14 16 18 20 22 24 26 28 3/1 3 5 7 9 11 13 15 17 19 21 5
    6. 6. By Contrast, 1/2 an Instagram The Simpson’s: Tapped Out Daily Active Users (millions) 6
    7. 7. Traditional MySQL + Memcached Architecture● Runas many MySQL machines as you need www.example.com● Data sharded evenly across the machines using client code App Servers● Memcached used to provide faster response time for users Memcached Tier and reduce load on the database MySQL Tier 7
    8. 8. Limitations of MySQL + Memcached● To scale you need to start using MySQL more simply● Replicating too slow● Sharding is Hard● Migration to Sharding Problematic● Code overhead to manage keeping memcache and mysql in sync● Lots of components to deploy Learn From Others - This Scenario Costs Time and Money. Scaling SQL is potentially disastrous when going Viral: very risky time for major code changes and migrations... you have no Time when skyrocketing up. Trim This Down, Make Stronger Points 8
    9. 9. Lessons Learned• Use Scalable Architecture• Be Fast on Your Feet• Be Connected with Experts• Learn more about NoSQL and Couchbase 9
    10. 10. How to Prepare for GrowthDo Everything Right What can go wrong? 10
    11. 11. What Can Go Wrong? Murphy’s Law Applies Shouting in the Datacenter - Fishworks / Sun http://www.youtube.com/watch?v=tDacjrSCeq4 11
    12. 12. Speed & Scale Is Important S3 HBaseScale Riak Cassandra Couchbase SimpleDB RDBMS Datomic MongoDB memcached CouchDB Neo4j Redis Speed 12
    13. 13. Couchbase Architectural Promise• High Performance data access• Scale Up/Down Horizontally www.example.com• Always-On Availability• Flexible Schema Document Model App Servers Couchbase DatabaseSPLIT INTO 4 SLIDESWHY THEY MATTER FOR VIRAL APPS 13
    14. 14. Scalable Database●On-demand cluster sizing ● Grow or shrink with workload●Easy node provisioning Part of Previous ● All nodes are same/identical = simple provisioning●Multi-master Cross-Datacenter Replication ● For a fast and reliable user experience worldwide●Effective Auto-sharding ● Should avoid cluster hot spots 14
    15. 15. COUCHBASE SWEETSPOT 15
    16. 16. Sweet Spot: Fast and Growing Cisco and Solarflare benchmark of Couchbase Server Latency Throughput less than 1/2 ms grows linearly with cluster size 5 Nodes -- 1.75M operations per second 16
    17. 17. Things To Look at Evaluating● Find your Sweet Spot● Latency & Throughput● Query Needs ● Views (Map/Reduce Index & Query) ● Full Text Search with Elastic Search● Cloud/Hosted/SSD’s● Virality Potential● Read/Write Proportions 17
    18. 18. Query Needs● Are Key value look-ups sufficient?● Or do you need range scans on secondary indexes? Answers● Views with Range Queries● Full Text Search with Elastic Search● Geographic Queries 18
    19. 19. What color Maserati to get?When your app goes Viral,this is what you should beconcerned about, not your database. 19
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×