SlideShare ist ein Scribd-Unternehmen logo
1 von 47
Downloaden Sie, um offline zu lesen
Loading and Analyzing Behavioral
Data in Amazon Redshift
PresentedbySegment,AWS&XOGroup Inc.
March3,2015
JonHawkins
Dir.ofAnalytics&SEO
XOGroupInc.
ScottWard
SolutionsArchitect
AWS
PeterReinhardt
CEO
Segment
Today’s Speakers
Today’s agenda
•  AmazonRedshiftArchitecture
•  SegmentSQLQuickDemo
•  XOGroup’sStory
Amazon Redshift
Fast,simple,petabyte-scaledatawarehousingforlessthan$1,000/TB/Year
Amazon Redshift is Easy to Use
•  Provisioninminutes
•  Monitorqueryperformance
•  Pointandclickresize
•  Builtinsecurity
•  Automaticbackups
Amazon Redshift Architecture
•  LeaderNode
–  SQLendpoint
–  Storesmetadata
–  Coordinatesqueryexecution
•  ComputeNodes
–  Local,columnarstorage
–  Executequeriesinparallel
–  Load,backup,restoreviaAmazonS3
–  ParallelloadfromAmazonDynamoDB,Amazon
EMR,AmazonS3,HDFS/SSH
•  Twohardwareplatforms
–  Optimizedfordataprocessing
–  DW1:HDD;scalefrom2TBto1.6PB
–  DW2:SSD;scalefrom160GBto256TB
10 GigE
(HPC)
Ingestion
Backup
Restore
SQL Clients/BI Tools
128GB RAM
16TB disk
16 cores
Amazon S3
JDBC/ODBC
128GB RAM
16TB disk
16 coresCompute
Node
128GB RAM
16TB disk
16 coresCompute
Node
128GB RAM
16TB disk
16 coresCompute
Node
Leader
Node
•  Columnstorage
•  Datacompression
•  Zonemaps
•  Direct-attachedstorage •  Withrowstorageyoudo
unnecessaryI/O
•  Togettotalamount,youhavetoread
everything
ID Age State Amount
123 20 CA 500
345 25 WA 250
678 40 FL 125
957 37 WA 375
Amazon Redshift Dramatically Reduces I/O
•  Withcolumnstorage,youonly
readthedatayouneed
ID Age State Amount
123 20 CA 500
345 25 WA 250
678 40 FL 125
957 37 WA 375
•  Columnstorage
•  Datacompression
•  Zonemaps
•  Direct-attachedstorage
Amazon Redshift Dramatically Reduces I/O
analyze compression listing;
Table | Column | Encoding
---------+----------------+----------
listing | listid | delta
listing | sellerid | delta32k
listing | eventid | delta32k
listing | dateid | bytedict
listing | numtickets | bytedict
listing | priceperticket | delta32k
listing | totalprice | mostly32
listing | listtime | raw
•  Columnstorage
•  Datacompression
•  Zonemaps
•  Direct-attachedstorage
•  COPYcompressesautomatically
•  Youcananalyzeandoverride
•  Moreperformance,lesscost
Amazon Redshift Dramatically Reduces I/O
•  Columnstorage
•  Datacompression
•  Zonemaps
•  Direct-attachedstorage
10 | 13 | 14 | 26 |…
… | 100 | 245 | 324
375 | 393 | 417…
… 512 | 549 | 623
637 | 712 | 809 …
… | 834 | 921 | 959
10
324
375
623
637
959
•  Tracktheminimumandmaximum
valueforeachblock
•  Skipoverblocksthatdon’tcontain
relevantdata
Amazon Redshift Dramatically Reduces I/O
•  Columnstorage
•  Datacompression
•  Zonemaps
•  Direct-attachedstorage
128 GB RAM
16 cores
16 TB disk
DW.HS1.8XL:
•  >2GB/sscanrate
•  Optimizedfordataprocessing
•  Highdiskdensity
16 GB RAM
2 cores
2 TB disk
DW.HS1.XL:
Amazon Redshift Dramatically Reduces I/O
•  Query
•  Load
•  Backup/Restore
•  Resize
Amazon Redshift Parallelizes and Distributes Everything
Amazon S3/DynamoDB
128GB RAM
16TB disk
16 coresCompute
Node
128GB RAM
16TB disk
16 coresCompute
Node
128GB RAM
16TB disk
16 coresCompute
Node
•  Query
•  Load
•  Backup/Restore
•  Resize
•  ParallelloadfromAmazonDynamoDB,AmazonEMR,
AmazonS3,HDFS/SSH
•  Kinesisintegration
•  Dataautomaticallydistributedandsortedaccordingto
DDL
•  Scaleslinearlywithnumber
ofnodes
Amazon Redshift Parallelizes and Distributes Everything
Amazon S3
128GB RAM
16TB disk
16 coresCompute
Node
128GB RAM
16TB disk
16 coresCompute
Node
128GB RAM
16TB disk
16 coresCompute
Node
•  Query
•  Load
•  Backup/Restore
•  Resize
•  BackupstoAmazonS3areautomatic,continuous
andincremental
•  Backupyourclustertoasecondregion
•  Configurablesystemsnapshotretentionperiod;take
usersnapshotson-demand
•  Streamingrestoresenableyoutoresumequerying
faster
Amazon Redshift Parallelizes and Distributes Everything
SQL Clients/BI Tools
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Leader
Node
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Comput
e Node
128GB RAM
48TB disk
16 cores
Leader
Node
•  Query
•  Load
•  Backup/Restore
•  Resize
•  Add/removenodesorchangenodetypewhile
remainingonline
•  Provisionanewclusterandcopydatainparallelfrom
nodetonode
•  OnlychargedforsourceclusteruntilSQLendpoint
hasautomaticallybeenswitchedoverviaDNS
Amazon Redshift Parallelizes and Distributes Everything
•  SSLtosecuredataintransit
•  Encryptiontosecuredataatrest
–  AES-256;hardwareaccelerated
–  AllblocksondisksandinAmazonS3
encrypted
–  HSM/CloudHSM
•  Nodirectaccesstocomputenodes
•  AmazonVPCsupport
10 GigE
(HPC)
Ingestion
Backup
Restore
SQL Clients/BI Tools
128GB RAM
16TB disk
16 cores
128GB RAM
16TB disk
16 cores
128GB RAM
16TB disk
16 cores
128GB RAM
16TB disk
16 cores
Amazon S3 / Amazon DynamoDB
Customer VPC
Internal
Security
Group
JDBC/ODBC
Leader
Node
Compute
Node
Compute
Node
Compute
Node
Amazon Redshift Has Security Built In
Segment SQL
Asinglehubtostore,transform,andsendyourcustomerdata.
Allthesetoolsrunon
threetypesofdata.
IDENTIFY
Whoareyourusers?
TRACK
Whataretheydoing?
PAGE
Wherearethey?
analytics.track({ 'Added Product' , {
name: 'Monopoly: 3rd Edition',
price: 18.99,
quantity: 3
});
1
2
3
4
5
ReplaceallyourtagsandtrackingwithasingleAPI.
Asinglehubtostore,transform,andsendyourcustomerdata.
Thatsamedatacanfloweffortlessly(foryou)into
apetabytescaledatawarehouse.
Segment SQL
Allofyourdatainahosted,schematizedAmazonRedshiftinstance.
Segment SQL
Queryuser,page,andeventtables.
Segment SQL Partners
XO Group Inc.
XO Group Inc.
Our Analytics Journey
XO Group Inc. + Segment
Individualproductteams
wantedisolatedaccessto
theirownanalytics.
Segment+Mixpanel+
Customer.io+Optimizely+
Uservoice
XO Group Inc. + Segment
Stillneededasolutionto
connectSegmentdatafrom
multipleproductsand
platformsintoasingleview.
SegmentSQL+
ModeAnalytics
Version
support.
Sharing
functionality.
Membership
analysis.
3 Case Studies
Membership Analysis
Existingdatabasedidn’tgiveany
contextintohowauserbecamea
memberintheapp.
Couldn’tanalyzewhichfeatures
weredrivingmembership
upgrades,marketingattribution,
orcross-productpollination.
SELECT userID,
source,
reason
FROM xogrp.signed_up
1
2
3
4
Isolated Views
Membership Analysis
App A App B
Membership Analysis
Adesiretosaveourcontent
drivesourmembership.
Experiencingcertainappsbefore
downloadingasecond
significantlyimprovedLTV.
Wemadeiteasiertosaveand
organizeourcontent.
Weoptimizedpromotion
strategytoadvertisethe
stickiestappsfirsttocurrent
members.
Share Functionality
Facebook&Twitterdrovethe
mostinboundtraffic.
So,weguessedthey’dalsobethe
mostpopularsharingoptions.
SELECT title,
shareOption,
quantity
FROM xogrp.shared_article
1
2
3
4
Share Functionality
More considerate “Share” options
SMSadressfrom
desktopormobileweb
browser.
Oneclickemailyourselfthe
detailsofavenue.
Version Support
Couldn’tanswervery
simplequestionabout
whichrollupbrowser
versions,devices,and
operatingsystems
customerswereusing.
Causedalotofdebate
overwhichversionsto
support,whichtest
devicestobuy.
Version Support
Chrome40+
Chrome40+
Chrome40=
No,justno!
Version Support
Nowwecaneasilyseewhatbrowser
versionsandOS’saremostpopular.
Productandengineeringteamscanmake
data-drivendecisionsonwhichversions
tosupport.
Setupyourtrackingandanalyticsdatabasetoansweranyquestion.
Save valuableengineeringtimewithprebuiltsoftware.
Listentoeachteam’sneedsandcreatetheanalyticsviewtheywant.
Takeaways
Thank you!
Scheduleademo today.
segment.com/contact/sql

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Empfohlen

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)
 

Empfohlen (20)

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
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Loading and Analyzing Behavioral Data in Amazon Redshift