0
We’re hiring!                          Social Apps                          And Social Scalability                        ...
<?php           	 	 echo “Hola Mundo!!!”;           ?>Tuesday, December 6, 11
about me...Tuesday, December 6, 11
• CTO & Co-founder at Altodot                     (creators of The Fan Machine)             • Former CTO & Co-founder at  ...
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
What we doTuesday, December 6, 11
Social Apps!!!Tuesday, December 6, 11
What???Tuesday, December 6, 11
Web or desktop                   applications connected                     to Social NetworksTuesday, December 6, 11
Which social                          Networks?Tuesday, December 6, 11
Facebook Twitter        Orkut                      Google +                          Sonico          Foursquare      Googl...
Most Annoying API                               award?Tuesday, December 6, 11
Tuesday, December 6, 11
Some Facts...Tuesday, December 6, 11
TwitterTuesday, December 6, 11
• 500K users in Argentina                    • 0,56 % of users produce 50% of the                          content.       ...
Open SocialTuesday, December 6, 11
• 1,6 Billion Users world wide (several times                          duplicated people)                    • 100x “Socia...
FacebookTuesday, December 6, 11
• 750+ MM Users                    • +18 Million in Argentina (85% penetration)                    • +1 M Active Users in ...
• devs from 190 countries                    • 20 million installs every day                    • 250 million uses FB Conn...
What can we do?Tuesday, December 6, 11
TwitterTuesday, December 6, 11
REST API                Real Stream API                Search APITuesday, December 6, 11
Any limits?Tuesday, December 6, 11
350 Authorized                          Requests per hourTuesday, December 6, 11
Deal with it...Tuesday, December 6, 11
Some SamplesTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
THE Social NetworkTuesday, December 6, 11
FacebookTuesday, December 6, 11
Social GraphTuesday, December 6, 11
Tuesday, December 6, 11
THE PlatformTuesday, December 6, 11
Graph API                REST API        ADS API           Facebook Credits       Graph API explorer          XFBML       ...
THE ProtocolTuesday, December 6, 11
Open GraphTuesday, December 6, 11
Tuesday, December 6, 11
Graph APITuesday, December 6, 11
Objects ReferenceTuesday, December 6, 11
Objects Handling:                          POST, GET, DELETETuesday, December 6, 11
Public info, private infoTuesday, December 6, 11
Objects ConnectionsTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
REST ApiTuesday, December 6, 11
Javascript SDKTuesday, December 6, 11
Ads APITuesday, December 6, 11
Social ChannelsTuesday, December 6, 11
Canvas PageTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
FanPage Tabs (apps)Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Feed Stories on WallsTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Facebook ConnectTuesday, December 6, 11
Tuesday, December 6, 11
Otras ideas...Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Social PluginsTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Like BoxTuesday, December 6, 11
Tuesday, December 6, 11
Like and Send ButtonTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Live StreamTuesday, December 6, 11
Tuesday, December 6, 11
Comments BoxTuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Social                          ScalabilityTuesday, December 6, 11
The Fan Machine                             ScalabilityTuesday, December 6, 11
The Friendfeed                            approachTuesday, December 6, 11
Horizontal ScalabilityTuesday, December 6, 11
Static File Caching                          Web Server 1       Web Server 2      Web Server 3                            ...
What about the DB?Tuesday, December 6, 11
Static File Caching                          Web Server      Web Server         Web Server                              1 ...
DB scalling issues...Tuesday, December 6, 11
Tuesday, December 6, 11
• MAAAAANY RecordsTuesday, December 6, 11
• MAAAAANY Records                    • Caching not enoughTuesday, December 6, 11
• MAAAAANY Records                    • Caching not enough                    • Alters lock tables for hours!Tuesday, Dece...
• MAAAAANY Records                    • Caching not enough                    • Alters lock tables for hours!             ...
• MAAAAANY Records                    • Caching not enough                    • Alters lock tables for hours!             ...
Possible solutions...Tuesday, December 6, 11
Hbase  MongoDB                         Cassandra Membase                        SimpleDB                        NoSQL     ...
NoSQL = No Trust!Tuesday, December 6, 11
THE approachTuesday, December 6, 11
MySQLTuesday, December 6, 11
Sharded MySQL                             databasesTuesday, December 6, 11
MySQL emulating                      NoSQL over Sharded                          DatabasesTuesday, December 6, 11
If( MySQL == NoSQL) {            	 	 	 die(‘WTF???’);            }Tuesday, December 6, 11
Documents = EntitiesTuesday, December 6, 11
One Table for entities,                       many tables for                           indexes.Tuesday, December 6, 11
How does it look like?Tuesday, December 6, 11
File Caching                          Web Server      Web Server        Web Server                              1         ...
Static File Caching                  Web Server        Web Server     Web Server    Web Server                      1     ...
THE Benefits...Tuesday, December 6, 11
• Server maintenance per shard                    • Data Maintenance Per shard                    • NO table alters       ...
Questions?      Matias Paterlini      matias@altodot.com      @paterlinimatias                                 We’re hirin...
Upcoming SlideShare
Loading in...5
×

Social apps & social scalability

733

Published on

Presentation I made in the Mar del Plata Developers Conference in 2011 about social apps, and social scalability.

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

No Downloads
Views
Total Views
733
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
22
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Social apps & social scalability"

  1. 1. We’re hiring! Social Apps And Social Scalability Matias Paterlini AltodotTuesday, December 6, 11
  2. 2. <?php echo “Hola Mundo!!!”; ?>Tuesday, December 6, 11
  3. 3. about me...Tuesday, December 6, 11
  4. 4. • CTO & Co-founder at Altodot (creators of The Fan Machine) • Former CTO & Co-founder at Virtualinmobiliario.com • Former CTO & Co-founder at Xristianos Producciones • Jóven Empresario Bonaerense 2008 • Head at Emprendedores CristianosTuesday, December 6, 11
  5. 5. Tuesday, December 6, 11
  6. 6. Tuesday, December 6, 11
  7. 7. Tuesday, December 6, 11
  8. 8. Tuesday, December 6, 11
  9. 9. Tuesday, December 6, 11
  10. 10. What we doTuesday, December 6, 11
  11. 11. Social Apps!!!Tuesday, December 6, 11
  12. 12. What???Tuesday, December 6, 11
  13. 13. Web or desktop applications connected to Social NetworksTuesday, December 6, 11
  14. 14. Which social Networks?Tuesday, December 6, 11
  15. 15. Facebook Twitter Orkut Google + Sonico Foursquare Google Linkedin Hi5Tuesday, December 6, 11
  16. 16. Most Annoying API award?Tuesday, December 6, 11
  17. 17. Tuesday, December 6, 11
  18. 18. Some Facts...Tuesday, December 6, 11
  19. 19. TwitterTuesday, December 6, 11
  20. 20. • 500K users in Argentina • 0,56 % of users produce 50% of the content. • The majority uses SmartPhones • Users with more than 10 friends: 60% • Users with more than 130 friends (media at Facebook), 20%.Tuesday, December 6, 11
  21. 21. Open SocialTuesday, December 6, 11
  22. 22. • 1,6 Billion Users world wide (several times duplicated people) • 100x “Social networks” implemented • Orkut still leading at Brazil • Just launched Open Social 2Tuesday, December 6, 11
  23. 23. FacebookTuesday, December 6, 11
  24. 24. • 750+ MM Users • +18 Million in Argentina (85% penetration) • +1 M Active Users in Argentina in May • 50% of active users login every day • average user has 130 friends • Billion dollars businessTuesday, December 6, 11
  25. 25. • devs from 190 countries • 20 million installs every day • 250 million uses FB Connect every day • 10K websites integrated every day • 900 million open graph objects • 70 translationsTuesday, December 6, 11
  26. 26. What can we do?Tuesday, December 6, 11
  27. 27. TwitterTuesday, December 6, 11
  28. 28. REST API Real Stream API Search APITuesday, December 6, 11
  29. 29. Any limits?Tuesday, December 6, 11
  30. 30. 350 Authorized Requests per hourTuesday, December 6, 11
  31. 31. Deal with it...Tuesday, December 6, 11
  32. 32. Some SamplesTuesday, December 6, 11
  33. 33. Tuesday, December 6, 11
  34. 34. Tuesday, December 6, 11
  35. 35. Tuesday, December 6, 11
  36. 36. Tuesday, December 6, 11
  37. 37. Tuesday, December 6, 11
  38. 38. THE Social NetworkTuesday, December 6, 11
  39. 39. FacebookTuesday, December 6, 11
  40. 40. Social GraphTuesday, December 6, 11
  41. 41. Tuesday, December 6, 11
  42. 42. THE PlatformTuesday, December 6, 11
  43. 43. Graph API REST API ADS API Facebook Credits Graph API explorer XFBML Javascript SDK (FB Connect) Social Plugins Places APITuesday, December 6, 11
  44. 44. THE ProtocolTuesday, December 6, 11
  45. 45. Open GraphTuesday, December 6, 11
  46. 46. Tuesday, December 6, 11
  47. 47. Graph APITuesday, December 6, 11
  48. 48. Objects ReferenceTuesday, December 6, 11
  49. 49. Objects Handling: POST, GET, DELETETuesday, December 6, 11
  50. 50. Public info, private infoTuesday, December 6, 11
  51. 51. Objects ConnectionsTuesday, December 6, 11
  52. 52. Tuesday, December 6, 11
  53. 53. Tuesday, December 6, 11
  54. 54. Tuesday, December 6, 11
  55. 55. Tuesday, December 6, 11
  56. 56. REST ApiTuesday, December 6, 11
  57. 57. Javascript SDKTuesday, December 6, 11
  58. 58. Ads APITuesday, December 6, 11
  59. 59. Social ChannelsTuesday, December 6, 11
  60. 60. Canvas PageTuesday, December 6, 11
  61. 61. Tuesday, December 6, 11
  62. 62. Tuesday, December 6, 11
  63. 63. Tuesday, December 6, 11
  64. 64. Tuesday, December 6, 11
  65. 65. FanPage Tabs (apps)Tuesday, December 6, 11
  66. 66. Tuesday, December 6, 11
  67. 67. Tuesday, December 6, 11
  68. 68. Tuesday, December 6, 11
  69. 69. Tuesday, December 6, 11
  70. 70. Feed Stories on WallsTuesday, December 6, 11
  71. 71. Tuesday, December 6, 11
  72. 72. Tuesday, December 6, 11
  73. 73. Tuesday, December 6, 11
  74. 74. Facebook ConnectTuesday, December 6, 11
  75. 75. Tuesday, December 6, 11
  76. 76. Otras ideas...Tuesday, December 6, 11
  77. 77. Tuesday, December 6, 11
  78. 78. Tuesday, December 6, 11
  79. 79. Tuesday, December 6, 11
  80. 80. Tuesday, December 6, 11
  81. 81. Tuesday, December 6, 11
  82. 82. Social PluginsTuesday, December 6, 11
  83. 83. Tuesday, December 6, 11
  84. 84. Tuesday, December 6, 11
  85. 85. Like BoxTuesday, December 6, 11
  86. 86. Tuesday, December 6, 11
  87. 87. Like and Send ButtonTuesday, December 6, 11
  88. 88. Tuesday, December 6, 11
  89. 89. Tuesday, December 6, 11
  90. 90. Live StreamTuesday, December 6, 11
  91. 91. Tuesday, December 6, 11
  92. 92. Comments BoxTuesday, December 6, 11
  93. 93. Tuesday, December 6, 11
  94. 94. Tuesday, December 6, 11
  95. 95. Social ScalabilityTuesday, December 6, 11
  96. 96. The Fan Machine ScalabilityTuesday, December 6, 11
  97. 97. The Friendfeed approachTuesday, December 6, 11
  98. 98. Horizontal ScalabilityTuesday, December 6, 11
  99. 99. Static File Caching Web Server 1 Web Server 2 Web Server 3 Data Caching Database 1 Database 1 (replicated DB)Tuesday, December 6, 11
  100. 100. What about the DB?Tuesday, December 6, 11
  101. 101. Static File Caching Web Server Web Server Web Server 1 2 3 (Transaccional, read-write) Data Caching Master Slave Slave Database Database Database (read) (read)Tuesday, December 6, 11
  102. 102. DB scalling issues...Tuesday, December 6, 11
  103. 103. Tuesday, December 6, 11
  104. 104. • MAAAAANY RecordsTuesday, December 6, 11
  105. 105. • MAAAAANY Records • Caching not enoughTuesday, December 6, 11
  106. 106. • MAAAAANY Records • Caching not enough • Alters lock tables for hours!Tuesday, December 6, 11
  107. 107. • MAAAAANY Records • Caching not enough • Alters lock tables for hours! • Maintenance IssuesTuesday, December 6, 11
  108. 108. • MAAAAANY Records • Caching not enough • Alters lock tables for hours! • Maintenance Issues • Que haces si se corrompe la base porque alguien se engancha el cable de la luz con el pié???Tuesday, December 6, 11
  109. 109. Possible solutions...Tuesday, December 6, 11
  110. 110. Hbase MongoDB Cassandra Membase SimpleDB NoSQL BigData CouchDB Hipertable RaptorDBTuesday, December 6, 11
  111. 111. NoSQL = No Trust!Tuesday, December 6, 11
  112. 112. THE approachTuesday, December 6, 11
  113. 113. MySQLTuesday, December 6, 11
  114. 114. Sharded MySQL databasesTuesday, December 6, 11
  115. 115. MySQL emulating NoSQL over Sharded DatabasesTuesday, December 6, 11
  116. 116. If( MySQL == NoSQL) { die(‘WTF???’); }Tuesday, December 6, 11
  117. 117. Documents = EntitiesTuesday, December 6, 11
  118. 118. One Table for entities, many tables for indexes.Tuesday, December 6, 11
  119. 119. How does it look like?Tuesday, December 6, 11
  120. 120. File Caching Web Server Web Server Web Server 1 2 3 Data Caching Databases Server 1 Shard 1 Shard 4 Shard 10 Shard 7 Shard 2 Shard 5 Shard 11 Shard 8 Shard 3 Shard 6 Shard 12 Shard 9 } Databases Database BackupsTuesday, December 6, 11
  121. 121. Static File Caching Web Server Web Server Web Server Web Server 1 2 3 3 DB 1 DB 1 DB 1 DB 1 Shard 1 Shard 3 Shard 6 Shard 9 Shard 2 Shard 4 Shard 7 Shard 10 Shard 3 Shard 5 Shard 8 Shard 11 Database Backups per ShardTuesday, December 6, 11
  122. 122. THE Benefits...Tuesday, December 6, 11
  123. 123. • Server maintenance per shard • Data Maintenance Per shard • NO table alters • Easy recovery • Easy scalability • Easy migration to other No-SQL data enginesTuesday, December 6, 11
  124. 124. Questions? Matias Paterlini matias@altodot.com @paterlinimatias We’re hiring!!!Tuesday, December 6, 11
  1. A particular slide catching your eye?

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

×