SlideShare a Scribd company logo
1 of 124
Download to read offline
We’re hiring!




                          Social Apps
                          And Social Scalability

                                          Matias Paterlini
                                                 Altodot
Tuesday, December 6, 11
<?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
                     Virtualinmobiliario.com
             • Former CTO & Co-founder at Xristianos
                     Producciones
             • Jóven Empresario Bonaerense 2008
             • Head at Emprendedores Cristianos
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
What we do



Tuesday, December 6, 11
Social Apps!!!



Tuesday, December 6, 11
What???



Tuesday, December 6, 11
Web or desktop
                   applications connected
                     to Social Networks


Tuesday, December 6, 11
Which social
                          Networks?


Tuesday, December 6, 11
Facebook Twitter
        Orkut                      Google +

                          Sonico          Foursquare

      Google
                               Linkedin         Hi5
Tuesday, December 6, 11
Most Annoying API
                               award?


Tuesday, December 6, 11
Tuesday, December 6, 11
Some Facts...



Tuesday, December 6, 11
Twitter



Tuesday, December 6, 11
• 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
Open Social



Tuesday, December 6, 11
• 1,6 Billion Users world wide (several times
                          duplicated people)

                    • 100x “Social networks” implemented
                    • Orkut still leading at Brazil
                    • Just launched Open Social 2

Tuesday, December 6, 11
Facebook



Tuesday, December 6, 11
• 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 business
Tuesday, December 6, 11
• 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 translations
Tuesday, December 6, 11
What can we do?



Tuesday, December 6, 11
Twitter



Tuesday, December 6, 11
REST API

                Real Stream API

                Search API

Tuesday, December 6, 11
Any limits?



Tuesday, December 6, 11
350 Authorized
                          Requests per hour



Tuesday, December 6, 11
Deal with it...



Tuesday, December 6, 11
Some Samples



Tuesday, 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 Network



Tuesday, December 6, 11
Facebook



Tuesday, December 6, 11
Social Graph



Tuesday, December 6, 11
Tuesday, December 6, 11
THE Platform



Tuesday, December 6, 11
Graph API                REST API
        ADS API           Facebook Credits
       Graph API explorer          XFBML
         Javascript SDK (FB Connect)

         Social Plugins         Places API
Tuesday, December 6, 11
THE Protocol



Tuesday, December 6, 11
Open Graph



Tuesday, December 6, 11
Tuesday, December 6, 11
Graph API



Tuesday, December 6, 11
Objects Reference



Tuesday, December 6, 11
Objects Handling:

                          POST, GET, DELETE


Tuesday, December 6, 11
Public info, private info



Tuesday, December 6, 11
Objects Connections



Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
REST Api



Tuesday, December 6, 11
Javascript SDK



Tuesday, December 6, 11
Ads API



Tuesday, December 6, 11
Social Channels



Tuesday, December 6, 11
Canvas Page



Tuesday, 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 Walls



Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Facebook Connect



Tuesday, 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 Plugins



Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Like Box



Tuesday, December 6, 11
Tuesday, December 6, 11
Like and Send Button



Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Live Stream



Tuesday, December 6, 11
Tuesday, December 6, 11
Comments Box



Tuesday, December 6, 11
Tuesday, December 6, 11
Tuesday, December 6, 11
Social
                          Scalability


Tuesday, December 6, 11
The Fan Machine
                             Scalability


Tuesday, December 6, 11
The Friendfeed
                            approach


Tuesday, December 6, 11
Horizontal Scalability



Tuesday, December 6, 11
Static File Caching

                          Web Server 1       Web Server 2      Web Server 3




                                          Data Caching



                                              Database 1        Database 1




                                                  (replicated DB)
Tuesday, December 6, 11
What about the DB?



Tuesday, December 6, 11
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
DB scalling issues...



Tuesday, December 6, 11
Tuesday, December 6, 11
• MAAAAANY Records




Tuesday, December 6, 11
• MAAAAANY Records
                    • Caching not enough




Tuesday, December 6, 11
• MAAAAANY Records
                    • Caching not enough
                    • Alters lock tables for hours!




Tuesday, December 6, 11
• MAAAAANY Records
                    • Caching not enough
                    • Alters lock tables for hours!
                    • Maintenance Issues



Tuesday, December 6, 11
• 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
Possible solutions...



Tuesday, December 6, 11
Hbase
  MongoDB                         Cassandra
 Membase                        SimpleDB
                        NoSQL
                BigData        CouchDB
                 Hipertable RaptorDB

Tuesday, December 6, 11
NoSQL = No Trust!



Tuesday, December 6, 11
THE approach



Tuesday, December 6, 11
MySQL



Tuesday, December 6, 11
Sharded MySQL
                             databases


Tuesday, December 6, 11
MySQL emulating
                      NoSQL over Sharded
                          Databases


Tuesday, December 6, 11
If( MySQL == NoSQL) {
            	

 	

 	

 die(‘WTF???’);
            }


Tuesday, December 6, 11
Documents = Entities



Tuesday, 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               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 Backups
Tuesday, December 6, 11
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 Shard
Tuesday, December 6, 11
THE Benefits...



Tuesday, December 6, 11
• Server maintenance per shard
                    • Data Maintenance Per shard
                    • NO table alters
                    • Easy recovery
                    • Easy scalability
                    • Easy migration to other No-SQL data
                          engines
Tuesday, December 6, 11
Questions?
      Matias Paterlini
      matias@altodot.com
      @paterlinimatias

                                 We’re hiring!!!
Tuesday, December 6, 11

More Related Content

Similar to Social apps & social scalability

Introduction to "R" for Language Researchers
Introduction to "R" for Language ResearchersIntroduction to "R" for Language Researchers
Introduction to "R" for Language Researchers
SAKAUE, Tatsuya
 
Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse
Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse
Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse
Javier de la Torre
 
Ricoh social media & sales
Ricoh social media & salesRicoh social media & sales
Ricoh social media & sales
Vincent Everts
 
Leytonmedia creando y fidelizando comunidades copywright
Leytonmedia creando y fidelizando comunidades copywrightLeytonmedia creando y fidelizando comunidades copywright
Leytonmedia creando y fidelizando comunidades copywright
Paulo Leyton
 
Social Gaming & Gambling Summit - London Chris Anderson
Social Gaming & Gambling Summit - London Chris AndersonSocial Gaming & Gambling Summit - London Chris Anderson
Social Gaming & Gambling Summit - London Chris Anderson
Mediabistro
 
Optimizing your site for contextual ads: SEO, Design and Content
Optimizing your site for contextual ads: SEO, Design and ContentOptimizing your site for contextual ads: SEO, Design and Content
Optimizing your site for contextual ads: SEO, Design and Content
Raven Tools
 

Similar to Social apps & social scalability (20)

Introduction to "R" for Language Researchers
Introduction to "R" for Language ResearchersIntroduction to "R" for Language Researchers
Introduction to "R" for Language Researchers
 
Dedo web talk
Dedo web talkDedo web talk
Dedo web talk
 
Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse
Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse
Yasser Ansari - Networked Organisms - Measuring Mother Nature's Pulse
 
Ricoh social media & sales
Ricoh social media & salesRicoh social media & sales
Ricoh social media & sales
 
Creando y fidelizando comunidades digitales
Creando y fidelizando comunidades digitalesCreando y fidelizando comunidades digitales
Creando y fidelizando comunidades digitales
 
Leytonmedia creando y fidelizando comunidades copywright
Leytonmedia creando y fidelizando comunidades copywrightLeytonmedia creando y fidelizando comunidades copywright
Leytonmedia creando y fidelizando comunidades copywright
 
A PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 appA PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 app
 
soft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Cachingsoft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Caching
 
2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services
2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services 2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services
2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services
 
Escalando una PHP App con DB sharding - PHP Conference
Escalando una PHP App con DB sharding - PHP ConferenceEscalando una PHP App con DB sharding - PHP Conference
Escalando una PHP App con DB sharding - PHP Conference
 
Is the Freemium Model Right for your Plugin?
Is the Freemium Model Right for your Plugin?Is the Freemium Model Right for your Plugin?
Is the Freemium Model Right for your Plugin?
 
Go! Go! Gadgets. Writing an OpenSocial Application
Go! Go! Gadgets.  Writing an OpenSocial ApplicationGo! Go! Gadgets.  Writing an OpenSocial Application
Go! Go! Gadgets. Writing an OpenSocial Application
 
Las maravillas de Google App Engine
Las maravillas de Google App EngineLas maravillas de Google App Engine
Las maravillas de Google App Engine
 
Design for Crowdsourcing
Design for CrowdsourcingDesign for Crowdsourcing
Design for Crowdsourcing
 
Jenzabar Foundation Guide For Student Groups
Jenzabar Foundation Guide For Student GroupsJenzabar Foundation Guide For Student Groups
Jenzabar Foundation Guide For Student Groups
 
Protecting your online privacy
Protecting your online privacyProtecting your online privacy
Protecting your online privacy
 
Social Gaming & Gambling Summit - London Chris Anderson
Social Gaming & Gambling Summit - London Chris AndersonSocial Gaming & Gambling Summit - London Chris Anderson
Social Gaming & Gambling Summit - London Chris Anderson
 
[Nuxeo World 2013] DID YOU SAY DAM? DIGITAL ASSET MANAGEMENT WITH THE NUXEO P...
[Nuxeo World 2013] DID YOU SAY DAM? DIGITAL ASSET MANAGEMENT WITH THE NUXEO P...[Nuxeo World 2013] DID YOU SAY DAM? DIGITAL ASSET MANAGEMENT WITH THE NUXEO P...
[Nuxeo World 2013] DID YOU SAY DAM? DIGITAL ASSET MANAGEMENT WITH THE NUXEO P...
 
Multiplatform, Promises and HTML5
Multiplatform, Promises and HTML5Multiplatform, Promises and HTML5
Multiplatform, Promises and HTML5
 
Optimizing your site for contextual ads: SEO, Design and Content
Optimizing your site for contextual ads: SEO, Design and ContentOptimizing your site for contextual ads: SEO, Design and Content
Optimizing your site for contextual ads: SEO, Design and Content
 

More from Matias Paterlini

Presentacion Social Media Marketing - EDN 54/2
Presentacion Social Media Marketing  - EDN 54/2Presentacion Social Media Marketing  - EDN 54/2
Presentacion Social Media Marketing - EDN 54/2
Matias Paterlini
 
Presentación campamento tucumán lleva tu potencial al extremo
Presentación campamento tucumán   lleva tu potencial al extremoPresentación campamento tucumán   lleva tu potencial al extremo
Presentación campamento tucumán lleva tu potencial al extremo
Matias Paterlini
 

More from Matias Paterlini (14)

Presentacion Social Media Marketing - EDN 54/2
Presentacion Social Media Marketing  - EDN 54/2Presentacion Social Media Marketing  - EDN 54/2
Presentacion Social Media Marketing - EDN 54/2
 
Social Media Marketing EDN 54-2 - Parte 1
Social Media Marketing EDN 54-2 - Parte 1Social Media Marketing EDN 54-2 - Parte 1
Social Media Marketing EDN 54-2 - Parte 1
 
Presentación campamento tucumán lleva tu potencial al extremo
Presentación campamento tucumán   lleva tu potencial al extremoPresentación campamento tucumán   lleva tu potencial al extremo
Presentación campamento tucumán lleva tu potencial al extremo
 
Presentación Vidas conectadas - EJ Uruguay
Presentación Vidas conectadas - EJ UruguayPresentación Vidas conectadas - EJ Uruguay
Presentación Vidas conectadas - EJ Uruguay
 
The Fan Machine Platform
The Fan Machine PlatformThe Fan Machine Platform
The Fan Machine Platform
 
Emprendedores Cristianos
Emprendedores CristianosEmprendedores Cristianos
Emprendedores Cristianos
 
Facebook Apps - PHP Developers Group
Facebook Apps - PHP Developers GroupFacebook Apps - PHP Developers Group
Facebook Apps - PHP Developers Group
 
Social Apps Workshop
Social Apps WorkshopSocial Apps Workshop
Social Apps Workshop
 
Desarrollando el potencial profesional de tus jóvenes
Desarrollando el potencial profesional de tus jóvenesDesarrollando el potencial profesional de tus jóvenes
Desarrollando el potencial profesional de tus jóvenes
 
Seminario intensivo emprendedores cristianos
Seminario intensivo   emprendedores cristianosSeminario intensivo   emprendedores cristianos
Seminario intensivo emprendedores cristianos
 
Entrevista Altodot para el Tribuno
Entrevista Altodot para el TribunoEntrevista Altodot para el Tribuno
Entrevista Altodot para el Tribuno
 
Matias Paterlini Entrevista Tweetboard
Matias Paterlini Entrevista TweetboardMatias Paterlini Entrevista Tweetboard
Matias Paterlini Entrevista Tweetboard
 
Presentación "Todos Pueden Emprender" en Mar Del Plata Valley por Matias Pate...
Presentación "Todos Pueden Emprender" en Mar Del Plata Valley por Matias Pate...Presentación "Todos Pueden Emprender" en Mar Del Plata Valley por Matias Pate...
Presentación "Todos Pueden Emprender" en Mar Del Plata Valley por Matias Pate...
 
Introduction to Facebook Apps Development at Fasta University.
Introduction to Facebook Apps Development at Fasta University.Introduction to Facebook Apps Development at Fasta University.
Introduction to Facebook Apps Development at Fasta University.
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Social apps & social scalability