SlideShare a Scribd company logo
1 of 12
Download to read offline
THE INS & OUTS OF DATA TRANSFER
LOS ANGELES AWS USERS GROUP
JASON DAVIS, CEO SIMON DATA
@JASONDAVIS
DRJASONDAVIS.COM
A TYPICAL DATA ECOSYSTEM
OLTP/RDS
DATA LAKE / REDSHIFT / S3
USERS FRONTEND
ANALYTICS
BACK OFFICE
"THE BIZ"
CORE TECH
3P TECH /
SAAS
CRM / ERPEMAIL / PUSH / SMS GRAPHS / BI
APPLICATION
A gentle introduction to data transfer & "ETL"
An overview of common failure cases
Best practices and some high level guidance
OVERVIEW
SOME TYPICAL DATA TRANSFERS
WEB ANALYTICS
"BUSINESS" REPORTING
ACQUISITION /
LTV ANALYSIS
EMAIL SEGMENTATION
Product recommendations
Extract: skus, purchase / browse history, profit margins
Transform: Deep learning / recommender systems
Load: user / sku recommendations into a production DB
Inventory planning
Extract: historical sales, inventory and shipping costs
Transform: Stockage goal estimation
Load: Sku-level forecasts into an ERP system
Executive dashboard
Extract: revenue, traffic, support volume, operational data
Transform: basic aggregates
Load: pie charts, vanity metrics driven by a reporting DB
SOME MORE TYPICAL DATA TRANSFERS
ETL: the process of pulling data from one or more sources for use in another
Extract data from one or more sources
Database, event streams, S3, Salesforce, email metrics
Transform data via aggregations, joins, filters, and/or predictive analysis
Parallel (Hadoop, Spark), In-core (Redshift), Scripts (Python, bash)
Load data into destination
Database / Redshift, S3, HDFS, SaaS, ERP, CRM, email platform, etc.
DATA TRANSFER IN 3 STEPS: EXTRACT-TRANSFORM-LOAD
E T L
Extraction failures
Source unavailable
Data corrupt / incomplete - upstream error
Transform failures
Resources unavailable / exceeded: OOM
Broken computation: Bad math / DBZ
Load failures
Validation errors
Connectivity errors
Availability / bandwidth limitations
Failures can cascade in unexpected ways
MOVING DATA IS HARD: COMMON FAILURE CASES
Maintaining state between two systems is hard
The basic problem of 1-1 syncing is hard in itself
Incrementals, cursor based extractors are all prone to failure
Failure cases are wide, varied, and data-driven
Generally require running in real-world context for an extended period
Many times failures are silent
Ensuring correctness is hard / impossible
Run-times are generally longer which strain unit testing best practices
FUNDAMENTAL CHALLENGES
=?
Break your pipeline into small steps
Large SQL statements are hard to test
SQL in general is hard to unit test - it's a declarative language after all
Data flow languages such as spark / cascading are easier to test
Build patterns to be able to easily test real-world inputs against outputs
Unit testing timeout errors and other exceptional cases are hard to test in isolation
WRITE UNIT TESTS BUT TEMPER EXPECTATIONS
DATA PIPES ARE HARD TO UNIT TEST
Idempotent. A unary operation (or function) is idempotent if, whenever it is applied twice to any value, it gives the
same result as if it were applied once; i.e., ƒ(ƒ(x)) ≡ ƒ(x). For example, the absolute value function, where abs(abs(x))
≡ abs(x), is idempotent.
In layman's terms: your code has the same result if you run it one, two, or three or more times.
Why is this important?
Oftentimes you won't know if something was successful or not.
Solution: Idempotency allows you to "just run it again"
IDEMPOTENCY
"THINGS DON'T ALWAYS TAKE ON THE FIRST TRY...."
Start with fine-grained logs
"Measure Anything, Measure Everything" - Etsy, Code as Craft
Alert on things that are mission critical or have well-known failure characteristic
VISIBILITY: LOGGING, GRAPHING, & ALERTING
OPTIMIZE FOR TIME TO DETECTION
THANKS
QUESTIONS?
DRJASONDAVIS.COM
EMAIL ME: JASON@SIMONDATA.COM

More Related Content

Similar to The ins & outs of data transfer

Whats a datawarehouse
Whats a datawarehouseWhats a datawarehouse
Whats a datawarehouse
vijjudarling
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearning
shanmukha rao dondapati
 
Introduction to Simulation
Introduction to SimulationIntroduction to Simulation
Introduction to Simulation
chimco.net
 
ScalabilityAvailability
ScalabilityAvailabilityScalabilityAvailability
ScalabilityAvailability
webuploader
 

Similar to The ins & outs of data transfer (20)

Whats a datawarehouse
Whats a datawarehouseWhats a datawarehouse
Whats a datawarehouse
 
Power of the Run Graph
Power of the Run GraphPower of the Run Graph
Power of the Run Graph
 
Em12c performance tuning outside the box
Em12c performance tuning outside the boxEm12c performance tuning outside the box
Em12c performance tuning outside the box
 
SQL Server 2008 Development for Programmers
SQL Server 2008 Development for ProgrammersSQL Server 2008 Development for Programmers
SQL Server 2008 Development for Programmers
 
Product! - The road to production deployment
Product! - The road to production deploymentProduct! - The road to production deployment
Product! - The road to production deployment
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearning
 
Introduction to Simulation
Introduction to SimulationIntroduction to Simulation
Introduction to Simulation
 
Modern Database Development Oow2008 Lucas Jellema
Modern Database Development Oow2008 Lucas JellemaModern Database Development Oow2008 Lucas Jellema
Modern Database Development Oow2008 Lucas Jellema
 
NoSQL, Hadoop, Cascading June 2010
NoSQL, Hadoop, Cascading June 2010NoSQL, Hadoop, Cascading June 2010
NoSQL, Hadoop, Cascading June 2010
 
Data Warehouses: A Whistle-Stop Tour
Data Warehouses: A Whistle-Stop TourData Warehouses: A Whistle-Stop Tour
Data Warehouses: A Whistle-Stop Tour
 
Using power db 02
Using power db 02Using power db 02
Using power db 02
 
Using power db 02
Using power db 02Using power db 02
Using power db 02
 
ScalabilityAvailability
ScalabilityAvailabilityScalabilityAvailability
ScalabilityAvailability
 
Data Warehouse
Data WarehouseData Warehouse
Data Warehouse
 
SQL Server 2008 Integration Services
SQL Server 2008 Integration ServicesSQL Server 2008 Integration Services
SQL Server 2008 Integration Services
 
Hadoop and Cascading At AJUG July 2009
Hadoop and Cascading At AJUG July 2009Hadoop and Cascading At AJUG July 2009
Hadoop and Cascading At AJUG July 2009
 
No sql
No sqlNo sql
No sql
 
Data ware house design
Data ware house designData ware house design
Data ware house design
 
Data ware house design
Data ware house designData ware house design
Data ware house design
 
Azure BI Cloud Architectural Guidelines.pdf
Azure BI Cloud Architectural Guidelines.pdfAzure BI Cloud Architectural Guidelines.pdf
Azure BI Cloud Architectural Guidelines.pdf
 

Recently uploaded

Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
gajnagarg
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
vexqp
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
ptikerjasaptiker
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
cnajjemba
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
Health
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 

Recently uploaded (20)

Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 

The ins & outs of data transfer

  • 1. THE INS & OUTS OF DATA TRANSFER LOS ANGELES AWS USERS GROUP JASON DAVIS, CEO SIMON DATA @JASONDAVIS DRJASONDAVIS.COM
  • 2. A TYPICAL DATA ECOSYSTEM OLTP/RDS DATA LAKE / REDSHIFT / S3 USERS FRONTEND ANALYTICS BACK OFFICE "THE BIZ" CORE TECH 3P TECH / SAAS CRM / ERPEMAIL / PUSH / SMS GRAPHS / BI APPLICATION
  • 3. A gentle introduction to data transfer & "ETL" An overview of common failure cases Best practices and some high level guidance OVERVIEW
  • 4. SOME TYPICAL DATA TRANSFERS WEB ANALYTICS "BUSINESS" REPORTING ACQUISITION / LTV ANALYSIS EMAIL SEGMENTATION
  • 5. Product recommendations Extract: skus, purchase / browse history, profit margins Transform: Deep learning / recommender systems Load: user / sku recommendations into a production DB Inventory planning Extract: historical sales, inventory and shipping costs Transform: Stockage goal estimation Load: Sku-level forecasts into an ERP system Executive dashboard Extract: revenue, traffic, support volume, operational data Transform: basic aggregates Load: pie charts, vanity metrics driven by a reporting DB SOME MORE TYPICAL DATA TRANSFERS
  • 6. ETL: the process of pulling data from one or more sources for use in another Extract data from one or more sources Database, event streams, S3, Salesforce, email metrics Transform data via aggregations, joins, filters, and/or predictive analysis Parallel (Hadoop, Spark), In-core (Redshift), Scripts (Python, bash) Load data into destination Database / Redshift, S3, HDFS, SaaS, ERP, CRM, email platform, etc. DATA TRANSFER IN 3 STEPS: EXTRACT-TRANSFORM-LOAD E T L
  • 7. Extraction failures Source unavailable Data corrupt / incomplete - upstream error Transform failures Resources unavailable / exceeded: OOM Broken computation: Bad math / DBZ Load failures Validation errors Connectivity errors Availability / bandwidth limitations Failures can cascade in unexpected ways MOVING DATA IS HARD: COMMON FAILURE CASES
  • 8. Maintaining state between two systems is hard The basic problem of 1-1 syncing is hard in itself Incrementals, cursor based extractors are all prone to failure Failure cases are wide, varied, and data-driven Generally require running in real-world context for an extended period Many times failures are silent Ensuring correctness is hard / impossible Run-times are generally longer which strain unit testing best practices FUNDAMENTAL CHALLENGES =?
  • 9. Break your pipeline into small steps Large SQL statements are hard to test SQL in general is hard to unit test - it's a declarative language after all Data flow languages such as spark / cascading are easier to test Build patterns to be able to easily test real-world inputs against outputs Unit testing timeout errors and other exceptional cases are hard to test in isolation WRITE UNIT TESTS BUT TEMPER EXPECTATIONS DATA PIPES ARE HARD TO UNIT TEST
  • 10. Idempotent. A unary operation (or function) is idempotent if, whenever it is applied twice to any value, it gives the same result as if it were applied once; i.e., ƒ(ƒ(x)) ≡ ƒ(x). For example, the absolute value function, where abs(abs(x)) ≡ abs(x), is idempotent. In layman's terms: your code has the same result if you run it one, two, or three or more times. Why is this important? Oftentimes you won't know if something was successful or not. Solution: Idempotency allows you to "just run it again" IDEMPOTENCY "THINGS DON'T ALWAYS TAKE ON THE FIRST TRY...."
  • 11. Start with fine-grained logs "Measure Anything, Measure Everything" - Etsy, Code as Craft Alert on things that are mission critical or have well-known failure characteristic VISIBILITY: LOGGING, GRAPHING, & ALERTING OPTIMIZE FOR TIME TO DETECTION