SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
Building Personalized
Applications at Scale



         Garrett Wu
   Director of Engineering
        Odiago, Inc.
Personalized Applications
Personalized Applications
Examples

● Recommendations
   ○ Amazon
   ○ Netflix
● Ad Targeting
   ○ Hulu
   ○ YouTube
● Fraud Detection
   ○ Visa
   ○ JPMC
● Spam
   ○ GMail
● Search Personalization
   ○ Google
Overall Requirements

● React to events in near real time.
   ○ Low latency reads/writes.
   ○ Event-driven analysis (not just batch).
● Web scale: 100's of millions of users.
   ○ High throughput reads/writes.
● Reliable.
   ○ Distributed, fault tolerant, graceful degradation.
● Flexible.
   ○ Evolvable schema.
   ○ Support ad-hoc experimentation and analyses.
Data Flow
Data Flow
Datastore Requirements

1. Random writes.
2. Analysis (MapReduce).
3. Random reads.
Datastore Requirements

1. Random writes.
2. Analysis (MapReduce).
3. Random reads.
Data Model Requirements

 1. Write user-centric data.
     ○ "Bob bought the Hunger Games book."
     ○ "Sally viewed product page X."
 2. Query user-centric data.
     ○ "What were Jim's most recent 5 purchases?"
     ○ "What are Sue's top 3 recommendations?"

Given everything we know about John:
   ● Transactions.
   ● Tweets.
   ● Likes.
... recommend, classify, predict, cluster, profile.
User-centric Data Model
User-centric Data Model



             <column>
              <name>email</name>
              <description>Email address</description>
              <schema>"string"</schema>
             </column>




Cells have Avro schemas for evolvable storage and retrieval.
User-centric Data Model




 ● 3-D storage with timestamps.
Analyzing Data: Producers




 ● produce() generates derived data for a single row:
    ○ recommend
    ○ profile
    ○ classify
    ○ etc.
Analyzing Data: Gatherers




● gather() aggregates data across all rows.
   ○ build association rules for collaborative filtering.
   ○ train classifier models.
   ○ compute prior probabilities for events.
   ○ etc.
Example: Ad Targeting
User                Games                  Interests   Recommended Ads
Alex                MiniGolf Pro,
                    Extreme Pond Fishing


Bob                 Kitten Krash



Carol               Apples Everywhere,
                    Underground Racer




Game                        Categories
MiniGolf Pro                Golf,
                            Sports

Kitten Krash                Cats,
                            Racing

Apples Everywhere           Puzzles
Example: Ad Targeting
User                Games                  Interests       Recommended Ads
Alex                MiniGolf Pro,          Golf,
                    Extreme Pond Fishing   Sports


Bob                 Kitten Krash


                                                Producer
Carol               Apples Everywhere,
                    Underground Racer




Game                        Categories
MiniGolf Pro                Golf,
                            Sports

Kitten Krash                Cats,
                            Racing

Apples Everywhere           Puzzles
Example: Ad Targeting
User       Games                   Interests              Recommended Ads
Alex       MiniGolf Pro,           Golf,                  ESPN.com
           Extreme Pond Fishing    Sports


Bob        Kitten Krash



Carol      Apples Everywhere,
                                               Producer
           Underground Racer




Category           Advertisement
Golf               ESPN.com


Animals            Petco.com


Racing             Nascar.com
Example: Ad Targeting
User       Games                   Interests              Recommended Ads
Alex       MiniGolf Pro,           Golf,                  ESPN.com
           Extreme Pond Fishing    Sports


Bob        Kitten Krash



Carol      Apples Everywhere,
                                               Producer
           Underground Racer




Category           Advertisement
Golf               ESPN.com

                                                      Wait, where did
Animals            Petco.com
                                                      this come from?
Racing             Nascar.com
Example: Gathering Associations
User    Games                  Interests   Clicked Ads
Alex    MiniGolf Pro,          Golf,
        Extreme Pond Fishing   Sports

Bob     Kitten Krash


Carol   Apples Everywhere,
        Underground Racer
Example: Gathering Associations
User    Games                  Interests   Clicked Ads
Alex    MiniGolf Pro,          Golf,
        Extreme Pond Fishing   Sports

Bob     Kitten Krash


Carol   Apples Everywhere,
        Underground Racer
Example: Gathering Associations
Example: Gathering Associations
Example: Gathering Associations
Example: Gathering Associations
Example: Gathering Associations




      Map




      .
      .
      .
Example: Gathering Associations




      Map          Reduce




      .
      .
      .
Final Thoughts

● A user-centric data storage model has great advantages:
   ○ Fast per-user reads and writes.
   ○ Already pivoted by your most common analysis.
● HBase provides fast, reliable random-access and scans.
   ○ Billions of rows, millions of columns.
   ○ Integrates well with MapReduce for analysis.


● Build scalable personalized applications with WibiData.
   ○ Check out www.wibidata.com




                                          Garrett Wu | gwu@odiago.com

Más contenido relacionado

Último

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
 

Último (20)

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
 
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
 
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?
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Building Personalized Applications at Scale

  • 1. Building Personalized Applications at Scale Garrett Wu Director of Engineering Odiago, Inc.
  • 4. Examples ● Recommendations ○ Amazon ○ Netflix ● Ad Targeting ○ Hulu ○ YouTube ● Fraud Detection ○ Visa ○ JPMC ● Spam ○ GMail ● Search Personalization ○ Google
  • 5. Overall Requirements ● React to events in near real time. ○ Low latency reads/writes. ○ Event-driven analysis (not just batch). ● Web scale: 100's of millions of users. ○ High throughput reads/writes. ● Reliable. ○ Distributed, fault tolerant, graceful degradation. ● Flexible. ○ Evolvable schema. ○ Support ad-hoc experimentation and analyses.
  • 8. Datastore Requirements 1. Random writes. 2. Analysis (MapReduce). 3. Random reads.
  • 9. Datastore Requirements 1. Random writes. 2. Analysis (MapReduce). 3. Random reads.
  • 10. Data Model Requirements 1. Write user-centric data. ○ "Bob bought the Hunger Games book." ○ "Sally viewed product page X." 2. Query user-centric data. ○ "What were Jim's most recent 5 purchases?" ○ "What are Sue's top 3 recommendations?" Given everything we know about John: ● Transactions. ● Tweets. ● Likes. ... recommend, classify, predict, cluster, profile.
  • 12. User-centric Data Model <column> <name>email</name> <description>Email address</description> <schema>"string"</schema> </column> Cells have Avro schemas for evolvable storage and retrieval.
  • 13. User-centric Data Model ● 3-D storage with timestamps.
  • 14. Analyzing Data: Producers ● produce() generates derived data for a single row: ○ recommend ○ profile ○ classify ○ etc.
  • 15. Analyzing Data: Gatherers ● gather() aggregates data across all rows. ○ build association rules for collaborative filtering. ○ train classifier models. ○ compute prior probabilities for events. ○ etc.
  • 16. Example: Ad Targeting User Games Interests Recommended Ads Alex MiniGolf Pro, Extreme Pond Fishing Bob Kitten Krash Carol Apples Everywhere, Underground Racer Game Categories MiniGolf Pro Golf, Sports Kitten Krash Cats, Racing Apples Everywhere Puzzles
  • 17. Example: Ad Targeting User Games Interests Recommended Ads Alex MiniGolf Pro, Golf, Extreme Pond Fishing Sports Bob Kitten Krash Producer Carol Apples Everywhere, Underground Racer Game Categories MiniGolf Pro Golf, Sports Kitten Krash Cats, Racing Apples Everywhere Puzzles
  • 18. Example: Ad Targeting User Games Interests Recommended Ads Alex MiniGolf Pro, Golf, ESPN.com Extreme Pond Fishing Sports Bob Kitten Krash Carol Apples Everywhere, Producer Underground Racer Category Advertisement Golf ESPN.com Animals Petco.com Racing Nascar.com
  • 19. Example: Ad Targeting User Games Interests Recommended Ads Alex MiniGolf Pro, Golf, ESPN.com Extreme Pond Fishing Sports Bob Kitten Krash Carol Apples Everywhere, Producer Underground Racer Category Advertisement Golf ESPN.com Wait, where did Animals Petco.com this come from? Racing Nascar.com
  • 20. Example: Gathering Associations User Games Interests Clicked Ads Alex MiniGolf Pro, Golf, Extreme Pond Fishing Sports Bob Kitten Krash Carol Apples Everywhere, Underground Racer
  • 21. Example: Gathering Associations User Games Interests Clicked Ads Alex MiniGolf Pro, Golf, Extreme Pond Fishing Sports Bob Kitten Krash Carol Apples Everywhere, Underground Racer
  • 28. Final Thoughts ● A user-centric data storage model has great advantages: ○ Fast per-user reads and writes. ○ Already pivoted by your most common analysis. ● HBase provides fast, reliable random-access and scans. ○ Billions of rows, millions of columns. ○ Integrates well with MapReduce for analysis. ● Build scalable personalized applications with WibiData. ○ Check out www.wibidata.com Garrett Wu | gwu@odiago.com