SlideShare a Scribd company logo
1 of 61
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Pop-up Loft
Data Warehouses and Data Lakes
Asser Moustafa
Data Warehousing Solutions Architect Specialist
aserm@amazon.com
Asim Kumar Sasmal
Senior Consultant – Big Data
sasasim@amazon.com
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Agenda
• Introductory concepts
• Key evolutionary points for Data Ecosystem
• Key data stages
– Collect
– Store
– Analyze
– Consume
• Design Patterns
• Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Agenda
• Introductory concepts
• Key evolutionary points for Data Ecosystem
• Key data stages
– Collect
– Store
– Analyze
– Consume
• Design Patterns
• Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Data Warehouse Refresher
OLTP System Online Transaction Processing
(Operational System) - Characterized by a large
number of short on-line transactions (INSERT,
UPDATE, DELETE) that serve as persistence layer for
applications
OLAP (On-line Analytical Processing) is
characterized by relatively low volume of
transactions. Queries are often complex and
involve aggregations against large historical
datasets for data driven decision making
Data
warehouse
Business
Applications
OLTP
(Operations)
OLAP
(Information)
Decision
Making/Analytics
Source/Refresh
Data
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What is a Data Lake?
• Data lake is an architecture with a virtually limitless centralized
storage platform capable of categorization, processing, analysis, and
consumption of heterogeneous data sets
• Key data lake attributes
– Decoupled storage and compute
– Rapid ingest and transformation
– Secure multi-tenancy
– Query in-place
– Schema on read
• A way to make your data ecosystem more “future-proof”
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Finding Value in Data is a Journey
Business Monitoring
Business Insights
New Business Opportunity
Business Optimization
Business Transformation
Evolving Tools and Methods AI/MLSQL Query
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Ever Increasing Big Data
Volume
Velocity
Variety
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Agenda
• Introductory concepts
• Key evolutionary points for Data Ecosystem
• Key data stages
– Collect
– Store
– Analyze
– Consume
• Design Patterns
• Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• Batch
processing
• Stream
processing
• Artificial
intelligence
Big Data Evolution
Present timeframe Future timeframePast timeframe
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• Virtual
machines
• Managed
services
• Serverless
Cloud Services Evolution
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Plethora of Tools – How to Choose?
Amazon
Glacier
Amazon S3 Amazon DynamoDB
Amazon RDS
Amazon EMR
Amazon
Redshift
Amazon
Kinesis
AWS Lambda
Amazon
Machine Learning
Amazon SQS
Amazon
ElastiCache
Amazon DynamoDB
Streams
Amazon
Elasticsearch
AmazonKinesis
Analytics
Amazon
QuickSight
AWS Glue
Amazon
SageMaker Amazon Athena AWS Data Pipeline
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Big Data Challenges
Why?
How?
What tools should I use?
Is there a reference architecture?
Questions to
contemplate for
your data projects
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Architectural Principles
• Build decoupled systems
• Data → Store → Process → Store → Analyze → Answers
• Use the right tool for the job
• Data structure, latency, throughput, access patterns
• Leverage managed and serverless services
• Scalable/elastic, available, reliable, secure, no/low admin
• Use log-centric design patterns
• Immutable (append-only) logs (data lake), materialized views
• Be cost-conscious
• Big data ≠ big cost
• Enable your applications with AI/ML
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Agenda
• Introductory concepts
• Key evolutionary points for Data Ecosystem
• Key data stages
– Collect
– Store
– Analyze
– Consume
• Design Patterns
• Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT STORE
PROCESS/
ANALYZE
CONSUME
Time to answer (Latency)
Throughput
Cost
Simplify Big Data Processing
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT
Devices
Sensors
IoT platforms
AWS IoT STREAMS
IoT
EventsData streams
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
FILES
DataTransport&Logging
Import/export
Files
Log files
Media files
Mobile apps
Web apps
Data centers AWS Direct
Connect
RECORDS
Applications
Transactions
Data structures
Database records
Type of Data
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
STORE
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What Is the Temperature of Your Data?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Hot Warm Cold
Volume MB–GB GB–TB PB–EB
Item size B–KB KB–MB KB–TB
Latency ms ms, sec min, hrs
Durability Low–high High Very high
Request rate Very high High Low
Cost/byte $$-$ $-¢¢ ¢
Hot data Warm data Cold data
Data Characteristics: Hot, Warm, Cold
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Events
Files
Transactions
COLLECT
Devices
Sensors
IoT platforms
AWS IoT STREAMS
IoT
Data streams
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
FILES
DataTransport&Logging
Import/export
Log files
Media files
Mobile apps
Web apps
Data centers AWS Direct
Connect
RECORDS
Applications
Data structures
Database records
Type of Data STORE
NoSQL
In-memory
SQL
File/object
store
Stream
storage
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT
Devices
Sensors
IoT platforms
AWS IoT
STREAMS
IoT
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
FILES
DataTransport&Logging
Import/export
Mobile apps
Web apps
Data centers AWS Direct
Connect
RECORDS
Applications
STORE
NoSQL
In-memory
SQL
File/object
store
Amazon Kinesis
Firehose
Amazon Kinesis
Streams
Apache Kafka
Apache Kafka
• High throughput distributed
streaming platform
Amazon Kinesis Data Streams
• Managed stream storage
Amazon Kinesis Data Firehose
• Managed data delivery
Amazon DynamoDB
• Managed NoSQL database
• Tables can be stream-enabled
Stream Storage
Amazon DynamoDB
Streams
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Decouple producers & consumers
Persistent buffer
Collect multiple streams
Preserve client ordering
Parallel consumption
Streaming MapReduce
4 4 3 3 2 2 1 1
4 3 2 1
4 3 2 1
4 3 2 1
4 3 2 1
4 4 3 3 2 2 1 1
shard 1 / partition 1
shard 2 / partition 2
Consumer 1
Count of
red = 4
Count of
violet = 4
Consumer 2
Count of
blue = 4
Count of
green = 4
DynamoDB stream Amazon Kinesis stream Kafka topic
Why Stream Storage?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Which Stream/Message Storage Should I Use?
Hot Warm
Amazon DynamoDB
Streams
Amazon Kinesis
Streams
Amazon Kinesis
Firehose
Apache Kafka
(on Amazon EC2)
Amazon SQS
(Standard)
Amazon SQS
(FIFO)
AWS managed Yes Yes Yes No Yes Yes
Guaranteed ordering Yes Yes No Yes No Yes
Delivery (deduping) exactly-once At least once At least once At least/ At most
/ exactly once
At least
once
Exactly once
Data retention period 24 hours 7 days N/A Configurable 14 days 14 days
Availability 3 AZ 3 AZ 3 AZ Configurable 3 AZ 3 AZ
Scale /
throughput
No limit /
~ table IOPS
No limit /
~ shards
No limit /
automatic
No limit /
~ nodes
No limits /
automatic
300 TPS /
queue
Parallel consumption Yes Yes No Yes No No
Stream MapReduce Yes Yes N/A Yes N/A N/A
Row/object size 400 KB 1 MB Destination
row/object size
Configurable 256 KB 256 KB
Cost Higher (table cost) Low Low Low (+admin) Low-
medium
Low-medium
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT STORE
File
Mobile apps
Web apps
Devices
Sensors
IoT platforms
AWS IoT
Data centers AWS Direct
Connect
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
RECORDS
FILES
STREAMS
DataTransport&LoggingIoTApplications
Import/export
NoSQL
In-memory
SQL
Amazon S3
Amazon S3
Managed object storage service
built to store and retrieve any
amount of data
Amazon Redshift
Data warehouse storage for
further analysis of file contents
File/Object Storage
Apache Kafka
Amazon Kinesis
Streams
Amazon Kinesis
Firehose
Hot
Stream
Amazon DynamoDB
Streams
File/object
store
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Use Amazon S3 as Your Persistent File Store
• Natively supported by big data frameworks (Spark, Hive, Presto, etc.)
• Decouple storage and compute
• No need to run compute clusters for storage (unlike HDFS)
• Can run transient Amazon EMR clusters with Amazon EC2 Spot
Instances
• Multiple & heterogeneous analysis clusters and services can use
the same data
• Designed for 99.999999999% durability
• No need to pay for data replication within a region
• Secure: SSL, client/server-side encryption at rest
• Low cost
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What about HDFS/EMRFS & Amazon Glacier?
• HDFS/EMRFS
• Use HDFS/EMRFS for very frequently accessed (hot)
data
• Amazon S3
• Use Amazon S3 Standard for frequently accessed data
• Use Amazon S3 Standard – IA for infrequently accessed
data
• Use Amazon S3 One Zone-IA for data that doesn’t
require as much availability and resiliency at 80% cost
• Amazon Glacier
• Use Amazon Glacier for archiving cold data
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT STORE
Amazon
DynamoDB
Amazon RDS
Amazon Aurora
File
Mobile apps
Web apps
Devices
Sensors
IoT platforms
AWS IoT
Data centers AWS Direct
Connect
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
RECORDS
FILES
STREAMS
LoggingIoTApplications
Amazon S3
Amazon DAX
Amazon ElastiCache
Import/export
SQLNoSQLCache
Amazon ElastiCache
• Managed Memcached or Redis service
Amazon DynamoDB Accelerator
(DAX)
• Managed in-memory cache for
DynamoDB
Amazon DynamoDB
• Managed NoSQL database service
Amazon RDS & Amazon Aurora
• Managed relational database service
Cache & Database
Apache Kafka
Amazon Kinesis
Streams
Amazon Kinesis
Firehose
Hot
Stream
Amazon DynamoDB
Streams
NoSQL
In-memory
SQL
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Anti-Pattern
Database Tier
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Best Practice: Use the Right Tool for the Job
SearchIn-memory SQLNoSQL
Database Tier
GraphDB
Amazon
RDS/Aurora
Amazon DynamoDBAmazon
ElastiCache
Amazon
DynamoDB
Accelerator
SAP HANA
Amazon Elasticsearch
Service
Amazon Neptune
Amazon Redshift
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Which Data Store Should I Use?
Considerations
• Data structure → Fixed-schema, JSON, Key/Value
• Access patterns → Store data in the format you will access it
• Data characteristics → Hot, warm, cold
• Cost → Optimized cost
Store your data in the format (e.g. parquet, json, etc.) you will
consume it, but also hold onto raw data
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Data Structure and Access Patterns
Access Patterns What to use?
Put/Get (key, value) In-memory, NoSQL
Simple relationships → 1:N, M:N NoSQL
Multi-table joins, transaction, SQL SQL
Faceting, Search Search
Graph traversal GraphDB
Data Structure What to use?
Fixed schema SQL, NoSQL
Schema-free (JSON) NoSQL, Search
Key/Value In-memory, NoSQL
Graph GraphDB
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
In-memory
SQL
Request rate
High Low
Cost/GB
High Low
Latency
Low High
Data volume
Low High
Amazon
Glacier
Structure
NoSQL
Hot data Warm data Cold data
Low
High
S3
Search
Graph
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Amazon
ElastiCache
Amazon
DAX
Amazon
DynamoDB
Amazon
RDS (Aurora)
Amazon ES Amazon S3
Amazon
Glacier
Average
Latency
µs-ms µs-ms ms ms, sec ms,sec ms,sec,min
(~ size)
hrs
Typical
Data
Volume
GB GB GB–TBs
(no limit)
GB–TB
(64 TB max)
GB–TB MB–PB
(no limit)
GB–PB
(no limit)
Typical
Item Size
B-KB KB
(400 KB max)
KB
(400 KB max)
KB
(64 KB max)
B-KB
(2 GB max)
KB-TB
(5 TB max)
GB
(40 TB max)
Request
Rate
High – very
high
High – very
high
Very high
(no limit)
High High Low – high
(no limit)
Very low
Storage Cost
GB/Month
$$ $$ ¢¢ ¢¢ ¢¢ ¢ ¢4/10
Durability Low -
moderate
NA Very high Very high High Very high Very high
Availability High
2 AZ
High
3 AZ
Very high
3 AZ
Very high
3 AZ
High
2 AZ
Very high
3 AZ
Very high
3 AZ
Hot data Warm data Cold data
Which Data Store Should I Use?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Cost-Conscious Design
Example: Should I use Amazon S3 or Amazon DynamoDB?
• “I’m currently scoping out a project. The design calls for many small files,
perhaps up to a billion during peak. The total size would be on the order
of 1.5 TB per month…”
Request rate
(Writes/sec)
Object size
(Bytes)
Total size
(GB/month)
Objects per month
300 2048 1483 777,600,000
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Request rate
(writes/sec)
Object size
(bytes)
Total size
(GB/month)
Objects per
month
300 2,048 1,483 777,600,000
Amazon S3 or
Amazon DynamoDB?
https://calculator.s3.amazonaws.com/index.html
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Amazon S3
Wins!
300 23,730 777,600,00032,768
Amazon DynamoDB
Wins!
Request rate
(writes/sec)
Object size
(bytes)
Total size
(GB/month)
Objects per
month
300 2,048 1,483 777,600,000
Amazon S3 or
Amazon DynamoDB?
Amazon S3 Standard
Storage $34
Put/list requests $3,888
Total $3,922
Amazon DynamoDB
Provisioned throughput $273
Indexed data storage $383
Total $656
Amazon S3 Standard
Storage $545
Put/List Requests $3,888
Total $4,433
Amazon DynamoDB
Provisioned Throughput $4,556
Indexed Data Storage $5,944
Total $10,500
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
PROCESS /
ANALYZE
• Predictive Analytics
• Interactive and Batch Analytics
• Stream/Real-time Analytics
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Amazon AI
• Application Services
– Amazon Lex – Speech recognition
– Amazon Polly – Text to speech
– Amazon Translate – Real-time language translation /
Automatic Speech Recognition (ASR)
– Amazon Comprehend – Natural Language Processing
(NLP)
– Amazon Rekognition – Video & Image analysis
• Platform Services
– Amazon SageMaker
– Apache Spark ML on EMR
• Frameworks & Interfaces (AWS Deep Learning AMIs)
– Pre-installed with DL Frameworks (Apache MXNet,
TensorFlow, Caffe2, Chainer, CNTK, Torch, Gluon,
Theanos, or Keras); plus DL tools/drivers
Predictive Analytics
Developers
Data scientists
Deep learning
experts
PROCESS/ANALYZE
Predictive
AmazonAI
Lex Polly
AML
Rekognition
AWS DL AMIs
SageMaker DeepLens
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
PROCESS / ANALYZE
Amazon Redshift
& Spectrum
Amazon Athena
BatchInteractive
Amazon ES
Interactive and Batch Analytics
• Amazon Elasticsearch Service (ES)
– Managed Service for Elasticsearch
• Amazon Redshift and Amazon Redshift Spectrum
– Managed Data Warehouse
– Spectrum enables querying Amazon S3
• Amazon Athena
– Serverless Interactive Query Service
• Amazon EMR
– Managed Hadoop Framework for running Apache Spark,
Flink, Presto, Tez, Hive, Pig, HBase, etc.
Presto
Amazon
EMR
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Stream/Real-time Analytics
• Spark Streaming on Amazon EMR
• Amazon Kinesis Analytics
• Managed Service for running SQL on Streaming
data
• Amazon KCL
• Amazon Kinesis Client Library
• AWS Lambda
• Run code Serverless (without provisioning or
managing servers)
• Services such as S3 can publish events to Lambda
• Lambda can pool event from a Kinesis
PROCESS / ANALYZE
KCL
Apps
AWS Lambda
Amazon Kinesis
Analytics
Stream
Streaming
Amazon EMR
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Which Analytics Should I Use? PROCESS / ANALYZE
Batch
Takes minutes to hours
Example: Daily/weekly/monthly reports
Amazon EMR (MapReduce, Hive, Pig, Spark)
Interactive
Takes seconds
Example: Self-service dashboards
Amazon Redshift Spectrum, Amazon Athena, Amazon EMR (Presto, Spark)
Stream
Takes milliseconds to seconds
Example: Fraud alerts, 1 minute metrics
Amazon EMR (Spark Streaming), Amazon Kinesis Analytics, KCL, AWS
Lambda, etc.
Predictive
Takes milliseconds (real-time) to minutes (batch)
Example: Fraud detection, Forecasting demand, Speech recognition
Amazon AI (Rekognition, Lex, Polly, Transcribe, Translate, Comprehend,
AML, SageMaker, DeepLens),
Amazon EMR (Spark ML),
Deep Learning AMI (Apache MXNet, TensorFlow, Caffe2, Chainer, CNTK,
Torch, Gluon, Theanos, Keras)
Streaming
Amazon Kinesis
Analytics
KCL
Apps
AWS Lambda
Stream
Amazon EMR
Fast
Amazon ES
Amazon Redshift
& Spectrum
Presto
Amazon
EMR
Amazon Athena
BatchInteractive
FastSlow
Predictive
AmazonAI
Lex Polly
AML
Rekognition
AWS DL AMIs
SageMaker DeepLens
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Wh ich S t r e am Pro ce ssin g T e ch n o l o g y S h o u l d I Use ?
Amazon EMR
(Spark Streaming)
KCL Application Amazon SQS
Application
Amazon Kinesis
Analytics
AWS Lambda
Managed
Service
Yes No (EC2 + Auto
Scaling)
No (EC2 + Auto Scaling) Yes Yes
Serverless No No Yes Yes Yes
Scale /
Throughput
No limits /
~ nodes
No limits
~ nodes
No limits /
~ nodes
No limits /
automatic
No limits /
automatic
Availability Single AZ Multi-AZ Multi-AZ Multi-AZ Multi-AZ
Programming
Languages
Java, Python, Scala Java, others via
MultiLangDaemon
AWS SDK languages
(Java, .NET, Python, …)
ANSI SQL with
extensions
Node.js, Java,
Python
Uses Multistage processing Single stage
Processing
Simple event-based
triggers
Multistage
processing
Simple event-
based triggers
Reliability KCL and Spark
checkpoints
Managed by KCL Managed by Amazon
SQS Visibility Timeout
Managed by
Amazon Kinesis
Analytics
Managed by
AWS Lambda
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
W h i c h A n a l y t i c s T o o l S h o u l d I U s e ?
Amazon Redshift Amazon Redshift
Spectrum
Amazon Athena Amazon EMR
Presto Spark Hive
Use case Optimized for data
warehousing
Query S3 data from
Amazon Redshift
Interactive Queries
over S3 data
Interactive
Query
General
purpose
Batch
Scale/Throughput ~Nodes ~Nodes Automatic ~ Nodes
Managed Service Yes Yes Yes, Serverless Yes
Storage Local storage Amazon S3 Amazon S3 Amazon S3, HDFS
Optimization Columnar storage,
data compression,
and zone maps
AVRO, PARQUET
TEXT, SEQ
RCFILE, ORC, etc.
AVRO, PARQUET
TEXT, SEQ
RCFILE, ORC, etc.
Framework dependent
Metadata Amazon Redshift
Catalog
Glue Catalog Glue Catalog Glue Catalog or
Hive Meta-store
Auth/Access controls IAM, Users, groups,
and access controls
IAM, Users, groups,
and access controls
IAM IAM, LDAP & Kerberos
UDF support Yes (Scalar) Yes (Scalar) No Yes
Slow
Which Interactive Analytics Tool Should I Use?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What About Extract Transform and Load?
ETLSTORE PROCESS / ANALYZE
Data Integration Partners
Reduce the effort to move, cleanse, synchronize,
manage, and automatize data-related processes.
AWS Glue is a fully managed (serverless) ETL
service that makes it simple and cost-effective
to categorize your data, clean it, enrich it, and
move it reliably between various data stores.
Data Catalog Job Authoring Job Execution
AWS Glue
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT STORE PROCESS/ANALYZE
Amazon
DynamoDB
Amazon ElastiCache
Amazon RDS
Amazon Aurora
HotWarm
SQLNoSQLCacheFile
Mobile apps
Web apps
Devices
Sensors
IoT platforms
AWS IoT
Data centers AWS Direct
Connect
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
RECORDS
FILES
STREAMS
DataTransport&LoggingIoTApplications
Amazon S3
Amazon DAX
Import/export
ETL CONSUME
Apache Kafka
Amazon Kinesis
Streams
Amazon Kinesis
Firehose
Hot
Stream
Amazon DynamoDB
Streams
Streaming
Amazon Kinesis
Analytics
KCL
Apps
AWS Lambda
Stream
Amazon EMR
Fast
Amazon ES
Amazon Redshift
& Spectrum
Presto
Amazon
EMR
Amazon Athena
BatchInteractive
FastSlow
Predictive
AmazonAI
Lex Polly
AML
Rekognition
AWS DL AMIs
SageMaker DeepLens
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
CONSUME
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• BI/AI Applications
– Amazon EC2 or ECS Containers
– AWS Greengrass
• Data Science
– Amazon SageMaker
– Notebooks
– DS Platforms
– IDEs
• Analysis and Visualization
• Amazon QuickSight
• Tableau
• ….
COLLECT STORE CONSUMEPROCESS/ANALYZEETL
Amazon
QuickSight
Analysis&visualization
Model
Train/
Eval
Models
Deploy
Business
users
DevOps
Data Scientists
DataSceince
AI Apps
Amazon ECS
Apps
AWS
Greengrass
Amazon SageMaker
Predictive
AmazonAI
Lex Polly
AML
Rekognition
AWS DL AMIs
SageMaker DeepLens
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Putting It All Together
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
COLLECT STORE CONSUMEPROCESS/ANALYZE
Amazon
DynamoDB
Amazon ElastiCache
Amazon RDS
Amazon Aurora
HotWarm
SQLNoSQLCacheFile
Mobile apps
Web apps
Devices
Sensors
IoT platforms
AWS IoT
Data centers AWS Direct
Connect
Migration
Snowball
Logging
Amazon
CloudWatch
AWS
CloudTrail
RECORDS
FILES
STREAMS
Amazon
QuickSight
Analysis&visualization
DataTransport&LoggingIoTApplications
Amazon S3
Amazon DAX
Import/export
Amazon ECS
Model
Train/
Eval
Models
Deploy
ETL
Apache Kafka
Amazon Kinesis
Streams
Amazon Kinesis
Firehose
Hot
Stream
Amazon DynamoDB
Streams
DataSceince
AI Apps
Amazon ECS
Apps
AWS
Greengrass
Amazon SageMaker
Streaming
Amazon Kinesis
Analytics
KCL
Apps
AWS Lambda
Stream
Amazon EMR
Fast
Amazon ES
Amazon Redshift
& Spectrum
Presto
Amazon
EMR
Amazon Athena
BatchInteractive
FastSlow
Predictive
AmazonAI
Lex Polly
AML
Rekognition
AWS DL AMIs
SageMaker DeepLens
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Agenda
• Introductory concepts
• Key evolutionary points for Data Ecosystem
• Key data stages
– Collect
– Store
– Analyze
– Consume
• Design Patterns
• Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Real-time
Interactive
Batch
Spark Streaming
AWS Lambda
KCL apps
Amazon
Redshift
Amazon
Redshift
Hive
Spark
Presto
ProcessingTechnology
FastSlow
Answers
Hive
Native apps
KCL apps
AWS Lambda
Amazon
Athena
Amazon Kinesis Amazon
DynamoDB/RDS
Amazon S3Data
Hot Cold
Data Store
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Real-time Analytics
Amazon EMR
KCL app
AWS Lambda
Spark
Streaming
Amazon
AI
Real-time prediction
Amazon
ElastiCache
(Redis)
Amazon
DynamoDB
Amazon
RDS
Amazon
ES
App state or
Materialized
View
KPI
Process
Store
Amazon
Kinesis
Amazon Kinesis
Analytics
Amazon
SNS NotificationsAlerts
Amazon
S3
Log
Amazon
KinesisFan out Downstream
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Interactive
and
Batch
Analytics
process
store Batch
Interactive
Amazon EMR
Hive
Pig
Spark
Amazon
AI
Batch prediction
Real-time prediction
Amazon S3
Files
Amazon
Kinesis
Firehose
Amazon Kinesis
Analytics
Amazon Redshift
Amazon ES
Consume
Amazon EMR
Presto
Spark
Amazon Athena
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Real-time
App state
or
Materialized
View
Interactive
and
Batch
Data Lake
Amazon S3
Amazon Redshift
Amazon EMR
Presto
Hive
Pig
Spark
Amazon
ElastiCache
Amazon
DynamoDB
Amazon
RDS
Amazon
ES
AWS Lambda
Spark Streaming
on Amazon EMR
Applications
Amazon
Kinesis
KCL
Amazon
AI
Amazon
DynamoDB
Amazon
RDS
Change Data
Capture or Export
Transactions
Stream
Files
Amazon Kinesis
Analytics
Amazon Athena
Amazon
Kinesis
Firehose
Amazon ES
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What about Metadata?
• Glue Data Catalog
• Hive Metastore compliant
• Crawlers - Detect new data, schema, partitions
• Search - Metadata discovery
• Amazon Athena, Amazon EMR, and Amazon Redshift Spectrum
compatible
• Hive Metastore (Presto, Spark, Hive, Pig)
• Can be hosted on Amazon RDS
Data
Catalog Metastore RDS
Glue
Catalog
AWS Glue
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Security & Governance
• AWS Identity and Access Management (IAM)
• Amazon Cognito
• Amazon CloudWatch & AWS CloudTrail
• AWS KMS
• AWS Directory Service
• Apache Ranger
Security &
Governance IAM Amazon
CloudWatch
AWS
CloudTrail
AWS
AWSKMS
AWS
CloudHSM
AWS Directory
Service
Amazon
Cognito
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Agenda
• Introductory concepts
• Key evolutionary points for Data Ecosystem
• Key data stages
– Collect
– Store
– Analyze
– Consume
• Design Patterns
• Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Data lake
Reference
Architecture
Summary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Summary
• Build decoupled systems
• Data → Store → Process → Store → Analyze → Answers
• Use the right tool for the job
• Data structure, latency, throughput, access patterns
• Leverage AWS managed and serverless services
• Scalable/elastic, available, reliable, secure, no/low admin
• Use log-centric design patterns
• Immutable logs, data lake, materialized views
• Be cost-conscious
• Big data ≠ Big cost
• Enable your applications with AI/ML
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Pop-up Loft
aws.amazon.com/activate
Everything and Anything Startups
Need to Get Started on AWS

More Related Content

What's hot

Considerations for Building Your First Streaming Application (ANT359) - AWS r...
Considerations for Building Your First Streaming Application (ANT359) - AWS r...Considerations for Building Your First Streaming Application (ANT359) - AWS r...
Considerations for Building Your First Streaming Application (ANT359) - AWS r...Amazon Web Services
 
Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018
Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018
Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018Amazon Web Services
 
Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...
Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...
Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...Amazon Web Services
 
How Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsHow Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsAmazon Web Services
 
Data Warehousing with Amazon Redshift
Data Warehousing with Amazon RedshiftData Warehousing with Amazon Redshift
Data Warehousing with Amazon RedshiftAmazon Web Services
 
Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018
Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018
Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018Amazon Web Services
 
Loading Data into Amazon Redshift
Loading Data into Amazon RedshiftLoading Data into Amazon Redshift
Loading Data into Amazon RedshiftAmazon Web Services
 
TiVo: How to Scale New Products with a Data Lake on AWS and Qubole
 TiVo: How to Scale New Products with a Data Lake on AWS and Qubole TiVo: How to Scale New Products with a Data Lake on AWS and Qubole
TiVo: How to Scale New Products with a Data Lake on AWS and QuboleAmazon Web Services
 
Data Warehousing with Amazon Redshift
Data Warehousing with Amazon RedshiftData Warehousing with Amazon Redshift
Data Warehousing with Amazon RedshiftAmazon Web Services
 
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018Amazon Web Services
 

What's hot (20)

Preparing Data for the Lake
Preparing Data for the LakePreparing Data for the Lake
Preparing Data for the Lake
 
Preparing Data for the Lake
Preparing Data for the LakePreparing Data for the Lake
Preparing Data for the Lake
 
Considerations for Building Your First Streaming Application (ANT359) - AWS r...
Considerations for Building Your First Streaming Application (ANT359) - AWS r...Considerations for Building Your First Streaming Application (ANT359) - AWS r...
Considerations for Building Your First Streaming Application (ANT359) - AWS r...
 
Analyzing Streams
Analyzing StreamsAnalyzing Streams
Analyzing Streams
 
Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018
Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018
Build Data Engineering Platforms with Amazon EMR (ANT204) - AWS re:Invent 2018
 
Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...
Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...
Amazon Athena: What's New and How SendGrid Innovates (ANT324) - AWS re:Invent...
 
Loading Data into Redshift
Loading Data into RedshiftLoading Data into Redshift
Loading Data into Redshift
 
How Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsHow Amazon.com uses AWS Analytics
How Amazon.com uses AWS Analytics
 
Data Warehousing with Amazon Redshift
Data Warehousing with Amazon RedshiftData Warehousing with Amazon Redshift
Data Warehousing with Amazon Redshift
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018
Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018
Build Your First Big Data Application on AWS (ANT213-R1) - AWS re:Invent 2018
 
Loading Data into Amazon Redshift
Loading Data into Amazon RedshiftLoading Data into Amazon Redshift
Loading Data into Amazon Redshift
 
TiVo: How to Scale New Products with a Data Lake on AWS and Qubole
 TiVo: How to Scale New Products with a Data Lake on AWS and Qubole TiVo: How to Scale New Products with a Data Lake on AWS and Qubole
TiVo: How to Scale New Products with a Data Lake on AWS and Qubole
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
Data Warehousing with Amazon Redshift
Data Warehousing with Amazon RedshiftData Warehousing with Amazon Redshift
Data Warehousing with Amazon Redshift
 
How Amazon uses AWS Analytics
How Amazon uses AWS AnalyticsHow Amazon uses AWS Analytics
How Amazon uses AWS Analytics
 
Log Analytics with AWS
Log Analytics with AWSLog Analytics with AWS
Log Analytics with AWS
 
Analyzing Streams
Analyzing StreamsAnalyzing Streams
Analyzing Streams
 
Customer Uses of Data Lakes
Customer Uses of Data LakesCustomer Uses of Data Lakes
Customer Uses of Data Lakes
 
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
Leadership Session: AWS Database and Analytics (DAT206-L) - AWS re:Invent 2018
 

Similar to Data Warehouses & Data Lakes: Data Analytics Week at the SF Loft

Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...Amazon Web Services
 
Builders' Day - Building Data Lakes for Analytics On AWS LC
Builders' Day - Building Data Lakes for Analytics On AWS LCBuilders' Day - Building Data Lakes for Analytics On AWS LC
Builders' Day - Building Data Lakes for Analytics On AWS LCAmazon Web Services LATAM
 
Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018
Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018
Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018Amazon Web Services
 
Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...
Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...
Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...Amazon Web Services
 
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...AWS Riyadh User Group
 
AWS Data Lake: data analysis @ scale
AWS Data Lake: data analysis @ scaleAWS Data Lake: data analysis @ scale
AWS Data Lake: data analysis @ scaleAmazon Web Services
 
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...Amazon Web Services
 
Scaling from zero to millions of users
Scaling from zero to millions of usersScaling from zero to millions of users
Scaling from zero to millions of usersAmazon Web Services
 
Choose the right DB for the Job - Builders Day Israel
Choose the right DB for the Job - Builders Day IsraelChoose the right DB for the Job - Builders Day Israel
Choose the right DB for the Job - Builders Day IsraelAmazon Web Services
 
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...Amazon Web Services
 
Data Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & AthenaData Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & AthenaAmazon Web Services
 
Data Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & AthenaData Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & AthenaAmazon Web Services
 
Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural PatternsAmazon Web Services
 
Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...
Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...
Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...Amazon Web Services
 
Big data journey to the cloud rohit pujari 5.30.18
Big data journey to the cloud   rohit pujari 5.30.18Big data journey to the cloud   rohit pujari 5.30.18
Big data journey to the cloud rohit pujari 5.30.18Cloudera, Inc.
 
Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...
Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...
Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...Amazon Web Services
 
Big Data@Scale_AWSPSSummit_Singapore
Big Data@Scale_AWSPSSummit_SingaporeBig Data@Scale_AWSPSSummit_Singapore
Big Data@Scale_AWSPSSummit_SingaporeAmazon Web Services
 

Similar to Data Warehouses & Data Lakes: Data Analytics Week at the SF Loft (20)

Data Warehouses and Data Lakes
Data Warehouses and Data LakesData Warehouses and Data Lakes
Data Warehouses and Data Lakes
 
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
 
Builders' Day - Building Data Lakes for Analytics On AWS LC
Builders' Day - Building Data Lakes for Analytics On AWS LCBuilders' Day - Building Data Lakes for Analytics On AWS LC
Builders' Day - Building Data Lakes for Analytics On AWS LC
 
Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018
Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018
Using data lakes to quench your analytics fire - AWS Summit Cape Town 2018
 
Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...
Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...
Building a Data Lake in Amazon S3 & Amazon Glacier (STG401-R1) - AWS re:Inven...
 
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
 
AWS Data Lake: data analysis @ scale
AWS Data Lake: data analysis @ scaleAWS Data Lake: data analysis @ scale
AWS Data Lake: data analysis @ scale
 
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
 
Scaling from zero to millions of users
Scaling from zero to millions of usersScaling from zero to millions of users
Scaling from zero to millions of users
 
Choose the right DB for the Job - Builders Day Israel
Choose the right DB for the Job - Builders Day IsraelChoose the right DB for the Job - Builders Day Israel
Choose the right DB for the Job - Builders Day Israel
 
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
 
Implementing a Data Lake
Implementing a Data LakeImplementing a Data Lake
Implementing a Data Lake
 
Big Data@Scale
 Big Data@Scale Big Data@Scale
Big Data@Scale
 
Data Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & AthenaData Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & Athena
 
Data Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & AthenaData Catalog & ETL - Glue & Athena
Data Catalog & ETL - Glue & Athena
 
Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural Patterns
 
Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...
Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...
Building Serverless Analytics Solutions with Amazon QuickSight (ANT391) - AWS...
 
Big data journey to the cloud rohit pujari 5.30.18
Big data journey to the cloud   rohit pujari 5.30.18Big data journey to the cloud   rohit pujari 5.30.18
Big data journey to the cloud rohit pujari 5.30.18
 
Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...
Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...
Building Data Lakes That Cost Less and Deliver Results Faster - AWS Online Te...
 
Big Data@Scale_AWSPSSummit_Singapore
Big Data@Scale_AWSPSSummit_SingaporeBig Data@Scale_AWSPSSummit_Singapore
Big Data@Scale_AWSPSSummit_Singapore
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Data Warehouses & Data Lakes: Data Analytics Week at the SF Loft

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Pop-up Loft Data Warehouses and Data Lakes Asser Moustafa Data Warehousing Solutions Architect Specialist aserm@amazon.com Asim Kumar Sasmal Senior Consultant – Big Data sasasim@amazon.com
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Introductory concepts • Key evolutionary points for Data Ecosystem • Key data stages – Collect – Store – Analyze – Consume • Design Patterns • Summary
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Introductory concepts • Key evolutionary points for Data Ecosystem • Key data stages – Collect – Store – Analyze – Consume • Design Patterns • Summary
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Data Warehouse Refresher OLTP System Online Transaction Processing (Operational System) - Characterized by a large number of short on-line transactions (INSERT, UPDATE, DELETE) that serve as persistence layer for applications OLAP (On-line Analytical Processing) is characterized by relatively low volume of transactions. Queries are often complex and involve aggregations against large historical datasets for data driven decision making Data warehouse Business Applications OLTP (Operations) OLAP (Information) Decision Making/Analytics Source/Refresh Data
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved What is a Data Lake? • Data lake is an architecture with a virtually limitless centralized storage platform capable of categorization, processing, analysis, and consumption of heterogeneous data sets • Key data lake attributes – Decoupled storage and compute – Rapid ingest and transformation – Secure multi-tenancy – Query in-place – Schema on read • A way to make your data ecosystem more “future-proof”
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Finding Value in Data is a Journey Business Monitoring Business Insights New Business Opportunity Business Optimization Business Transformation Evolving Tools and Methods AI/MLSQL Query
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Ever Increasing Big Data Volume Velocity Variety
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Introductory concepts • Key evolutionary points for Data Ecosystem • Key data stages – Collect – Store – Analyze – Consume • Design Patterns • Summary
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • Batch processing • Stream processing • Artificial intelligence Big Data Evolution Present timeframe Future timeframePast timeframe
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • Virtual machines • Managed services • Serverless Cloud Services Evolution
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Plethora of Tools – How to Choose? Amazon Glacier Amazon S3 Amazon DynamoDB Amazon RDS Amazon EMR Amazon Redshift Amazon Kinesis AWS Lambda Amazon Machine Learning Amazon SQS Amazon ElastiCache Amazon DynamoDB Streams Amazon Elasticsearch AmazonKinesis Analytics Amazon QuickSight AWS Glue Amazon SageMaker Amazon Athena AWS Data Pipeline
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Big Data Challenges Why? How? What tools should I use? Is there a reference architecture? Questions to contemplate for your data projects
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Architectural Principles • Build decoupled systems • Data → Store → Process → Store → Analyze → Answers • Use the right tool for the job • Data structure, latency, throughput, access patterns • Leverage managed and serverless services • Scalable/elastic, available, reliable, secure, no/low admin • Use log-centric design patterns • Immutable (append-only) logs (data lake), materialized views • Be cost-conscious • Big data ≠ big cost • Enable your applications with AI/ML
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Introductory concepts • Key evolutionary points for Data Ecosystem • Key data stages – Collect – Store – Analyze – Consume • Design Patterns • Summary
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT STORE PROCESS/ ANALYZE CONSUME Time to answer (Latency) Throughput Cost Simplify Big Data Processing
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT Devices Sensors IoT platforms AWS IoT STREAMS IoT EventsData streams Migration Snowball Logging Amazon CloudWatch AWS CloudTrail FILES DataTransport&Logging Import/export Files Log files Media files Mobile apps Web apps Data centers AWS Direct Connect RECORDS Applications Transactions Data structures Database records Type of Data
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved STORE
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved What Is the Temperature of Your Data?
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Hot Warm Cold Volume MB–GB GB–TB PB–EB Item size B–KB KB–MB KB–TB Latency ms ms, sec min, hrs Durability Low–high High Very high Request rate Very high High Low Cost/byte $$-$ $-¢¢ ¢ Hot data Warm data Cold data Data Characteristics: Hot, Warm, Cold
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Events Files Transactions COLLECT Devices Sensors IoT platforms AWS IoT STREAMS IoT Data streams Migration Snowball Logging Amazon CloudWatch AWS CloudTrail FILES DataTransport&Logging Import/export Log files Media files Mobile apps Web apps Data centers AWS Direct Connect RECORDS Applications Data structures Database records Type of Data STORE NoSQL In-memory SQL File/object store Stream storage
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT Devices Sensors IoT platforms AWS IoT STREAMS IoT Migration Snowball Logging Amazon CloudWatch AWS CloudTrail FILES DataTransport&Logging Import/export Mobile apps Web apps Data centers AWS Direct Connect RECORDS Applications STORE NoSQL In-memory SQL File/object store Amazon Kinesis Firehose Amazon Kinesis Streams Apache Kafka Apache Kafka • High throughput distributed streaming platform Amazon Kinesis Data Streams • Managed stream storage Amazon Kinesis Data Firehose • Managed data delivery Amazon DynamoDB • Managed NoSQL database • Tables can be stream-enabled Stream Storage Amazon DynamoDB Streams
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Decouple producers & consumers Persistent buffer Collect multiple streams Preserve client ordering Parallel consumption Streaming MapReduce 4 4 3 3 2 2 1 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 4 3 3 2 2 1 1 shard 1 / partition 1 shard 2 / partition 2 Consumer 1 Count of red = 4 Count of violet = 4 Consumer 2 Count of blue = 4 Count of green = 4 DynamoDB stream Amazon Kinesis stream Kafka topic Why Stream Storage?
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Which Stream/Message Storage Should I Use? Hot Warm Amazon DynamoDB Streams Amazon Kinesis Streams Amazon Kinesis Firehose Apache Kafka (on Amazon EC2) Amazon SQS (Standard) Amazon SQS (FIFO) AWS managed Yes Yes Yes No Yes Yes Guaranteed ordering Yes Yes No Yes No Yes Delivery (deduping) exactly-once At least once At least once At least/ At most / exactly once At least once Exactly once Data retention period 24 hours 7 days N/A Configurable 14 days 14 days Availability 3 AZ 3 AZ 3 AZ Configurable 3 AZ 3 AZ Scale / throughput No limit / ~ table IOPS No limit / ~ shards No limit / automatic No limit / ~ nodes No limits / automatic 300 TPS / queue Parallel consumption Yes Yes No Yes No No Stream MapReduce Yes Yes N/A Yes N/A N/A Row/object size 400 KB 1 MB Destination row/object size Configurable 256 KB 256 KB Cost Higher (table cost) Low Low Low (+admin) Low- medium Low-medium
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT STORE File Mobile apps Web apps Devices Sensors IoT platforms AWS IoT Data centers AWS Direct Connect Migration Snowball Logging Amazon CloudWatch AWS CloudTrail RECORDS FILES STREAMS DataTransport&LoggingIoTApplications Import/export NoSQL In-memory SQL Amazon S3 Amazon S3 Managed object storage service built to store and retrieve any amount of data Amazon Redshift Data warehouse storage for further analysis of file contents File/Object Storage Apache Kafka Amazon Kinesis Streams Amazon Kinesis Firehose Hot Stream Amazon DynamoDB Streams File/object store
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Use Amazon S3 as Your Persistent File Store • Natively supported by big data frameworks (Spark, Hive, Presto, etc.) • Decouple storage and compute • No need to run compute clusters for storage (unlike HDFS) • Can run transient Amazon EMR clusters with Amazon EC2 Spot Instances • Multiple & heterogeneous analysis clusters and services can use the same data • Designed for 99.999999999% durability • No need to pay for data replication within a region • Secure: SSL, client/server-side encryption at rest • Low cost
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved What about HDFS/EMRFS & Amazon Glacier? • HDFS/EMRFS • Use HDFS/EMRFS for very frequently accessed (hot) data • Amazon S3 • Use Amazon S3 Standard for frequently accessed data • Use Amazon S3 Standard – IA for infrequently accessed data • Use Amazon S3 One Zone-IA for data that doesn’t require as much availability and resiliency at 80% cost • Amazon Glacier • Use Amazon Glacier for archiving cold data
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT STORE Amazon DynamoDB Amazon RDS Amazon Aurora File Mobile apps Web apps Devices Sensors IoT platforms AWS IoT Data centers AWS Direct Connect Migration Snowball Logging Amazon CloudWatch AWS CloudTrail RECORDS FILES STREAMS LoggingIoTApplications Amazon S3 Amazon DAX Amazon ElastiCache Import/export SQLNoSQLCache Amazon ElastiCache • Managed Memcached or Redis service Amazon DynamoDB Accelerator (DAX) • Managed in-memory cache for DynamoDB Amazon DynamoDB • Managed NoSQL database service Amazon RDS & Amazon Aurora • Managed relational database service Cache & Database Apache Kafka Amazon Kinesis Streams Amazon Kinesis Firehose Hot Stream Amazon DynamoDB Streams NoSQL In-memory SQL
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Anti-Pattern Database Tier
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Best Practice: Use the Right Tool for the Job SearchIn-memory SQLNoSQL Database Tier GraphDB Amazon RDS/Aurora Amazon DynamoDBAmazon ElastiCache Amazon DynamoDB Accelerator SAP HANA Amazon Elasticsearch Service Amazon Neptune Amazon Redshift
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Which Data Store Should I Use? Considerations • Data structure → Fixed-schema, JSON, Key/Value • Access patterns → Store data in the format you will access it • Data characteristics → Hot, warm, cold • Cost → Optimized cost Store your data in the format (e.g. parquet, json, etc.) you will consume it, but also hold onto raw data
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Data Structure and Access Patterns Access Patterns What to use? Put/Get (key, value) In-memory, NoSQL Simple relationships → 1:N, M:N NoSQL Multi-table joins, transaction, SQL SQL Faceting, Search Search Graph traversal GraphDB Data Structure What to use? Fixed schema SQL, NoSQL Schema-free (JSON) NoSQL, Search Key/Value In-memory, NoSQL Graph GraphDB
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved In-memory SQL Request rate High Low Cost/GB High Low Latency Low High Data volume Low High Amazon Glacier Structure NoSQL Hot data Warm data Cold data Low High S3 Search Graph
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Amazon ElastiCache Amazon DAX Amazon DynamoDB Amazon RDS (Aurora) Amazon ES Amazon S3 Amazon Glacier Average Latency µs-ms µs-ms ms ms, sec ms,sec ms,sec,min (~ size) hrs Typical Data Volume GB GB GB–TBs (no limit) GB–TB (64 TB max) GB–TB MB–PB (no limit) GB–PB (no limit) Typical Item Size B-KB KB (400 KB max) KB (400 KB max) KB (64 KB max) B-KB (2 GB max) KB-TB (5 TB max) GB (40 TB max) Request Rate High – very high High – very high Very high (no limit) High High Low – high (no limit) Very low Storage Cost GB/Month $$ $$ ¢¢ ¢¢ ¢¢ ¢ ¢4/10 Durability Low - moderate NA Very high Very high High Very high Very high Availability High 2 AZ High 3 AZ Very high 3 AZ Very high 3 AZ High 2 AZ Very high 3 AZ Very high 3 AZ Hot data Warm data Cold data Which Data Store Should I Use?
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Cost-Conscious Design Example: Should I use Amazon S3 or Amazon DynamoDB? • “I’m currently scoping out a project. The design calls for many small files, perhaps up to a billion during peak. The total size would be on the order of 1.5 TB per month…” Request rate (Writes/sec) Object size (Bytes) Total size (GB/month) Objects per month 300 2048 1483 777,600,000
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Request rate (writes/sec) Object size (bytes) Total size (GB/month) Objects per month 300 2,048 1,483 777,600,000 Amazon S3 or Amazon DynamoDB? https://calculator.s3.amazonaws.com/index.html
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Amazon S3 Wins! 300 23,730 777,600,00032,768 Amazon DynamoDB Wins! Request rate (writes/sec) Object size (bytes) Total size (GB/month) Objects per month 300 2,048 1,483 777,600,000 Amazon S3 or Amazon DynamoDB? Amazon S3 Standard Storage $34 Put/list requests $3,888 Total $3,922 Amazon DynamoDB Provisioned throughput $273 Indexed data storage $383 Total $656 Amazon S3 Standard Storage $545 Put/List Requests $3,888 Total $4,433 Amazon DynamoDB Provisioned Throughput $4,556 Indexed Data Storage $5,944 Total $10,500
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved PROCESS / ANALYZE • Predictive Analytics • Interactive and Batch Analytics • Stream/Real-time Analytics
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Amazon AI • Application Services – Amazon Lex – Speech recognition – Amazon Polly – Text to speech – Amazon Translate – Real-time language translation / Automatic Speech Recognition (ASR) – Amazon Comprehend – Natural Language Processing (NLP) – Amazon Rekognition – Video & Image analysis • Platform Services – Amazon SageMaker – Apache Spark ML on EMR • Frameworks & Interfaces (AWS Deep Learning AMIs) – Pre-installed with DL Frameworks (Apache MXNet, TensorFlow, Caffe2, Chainer, CNTK, Torch, Gluon, Theanos, or Keras); plus DL tools/drivers Predictive Analytics Developers Data scientists Deep learning experts PROCESS/ANALYZE Predictive AmazonAI Lex Polly AML Rekognition AWS DL AMIs SageMaker DeepLens
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved PROCESS / ANALYZE Amazon Redshift & Spectrum Amazon Athena BatchInteractive Amazon ES Interactive and Batch Analytics • Amazon Elasticsearch Service (ES) – Managed Service for Elasticsearch • Amazon Redshift and Amazon Redshift Spectrum – Managed Data Warehouse – Spectrum enables querying Amazon S3 • Amazon Athena – Serverless Interactive Query Service • Amazon EMR – Managed Hadoop Framework for running Apache Spark, Flink, Presto, Tez, Hive, Pig, HBase, etc. Presto Amazon EMR
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Stream/Real-time Analytics • Spark Streaming on Amazon EMR • Amazon Kinesis Analytics • Managed Service for running SQL on Streaming data • Amazon KCL • Amazon Kinesis Client Library • AWS Lambda • Run code Serverless (without provisioning or managing servers) • Services such as S3 can publish events to Lambda • Lambda can pool event from a Kinesis PROCESS / ANALYZE KCL Apps AWS Lambda Amazon Kinesis Analytics Stream Streaming Amazon EMR
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Which Analytics Should I Use? PROCESS / ANALYZE Batch Takes minutes to hours Example: Daily/weekly/monthly reports Amazon EMR (MapReduce, Hive, Pig, Spark) Interactive Takes seconds Example: Self-service dashboards Amazon Redshift Spectrum, Amazon Athena, Amazon EMR (Presto, Spark) Stream Takes milliseconds to seconds Example: Fraud alerts, 1 minute metrics Amazon EMR (Spark Streaming), Amazon Kinesis Analytics, KCL, AWS Lambda, etc. Predictive Takes milliseconds (real-time) to minutes (batch) Example: Fraud detection, Forecasting demand, Speech recognition Amazon AI (Rekognition, Lex, Polly, Transcribe, Translate, Comprehend, AML, SageMaker, DeepLens), Amazon EMR (Spark ML), Deep Learning AMI (Apache MXNet, TensorFlow, Caffe2, Chainer, CNTK, Torch, Gluon, Theanos, Keras) Streaming Amazon Kinesis Analytics KCL Apps AWS Lambda Stream Amazon EMR Fast Amazon ES Amazon Redshift & Spectrum Presto Amazon EMR Amazon Athena BatchInteractive FastSlow Predictive AmazonAI Lex Polly AML Rekognition AWS DL AMIs SageMaker DeepLens
  • 43. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Wh ich S t r e am Pro ce ssin g T e ch n o l o g y S h o u l d I Use ? Amazon EMR (Spark Streaming) KCL Application Amazon SQS Application Amazon Kinesis Analytics AWS Lambda Managed Service Yes No (EC2 + Auto Scaling) No (EC2 + Auto Scaling) Yes Yes Serverless No No Yes Yes Yes Scale / Throughput No limits / ~ nodes No limits ~ nodes No limits / ~ nodes No limits / automatic No limits / automatic Availability Single AZ Multi-AZ Multi-AZ Multi-AZ Multi-AZ Programming Languages Java, Python, Scala Java, others via MultiLangDaemon AWS SDK languages (Java, .NET, Python, …) ANSI SQL with extensions Node.js, Java, Python Uses Multistage processing Single stage Processing Simple event-based triggers Multistage processing Simple event- based triggers Reliability KCL and Spark checkpoints Managed by KCL Managed by Amazon SQS Visibility Timeout Managed by Amazon Kinesis Analytics Managed by AWS Lambda
  • 44. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved W h i c h A n a l y t i c s T o o l S h o u l d I U s e ? Amazon Redshift Amazon Redshift Spectrum Amazon Athena Amazon EMR Presto Spark Hive Use case Optimized for data warehousing Query S3 data from Amazon Redshift Interactive Queries over S3 data Interactive Query General purpose Batch Scale/Throughput ~Nodes ~Nodes Automatic ~ Nodes Managed Service Yes Yes Yes, Serverless Yes Storage Local storage Amazon S3 Amazon S3 Amazon S3, HDFS Optimization Columnar storage, data compression, and zone maps AVRO, PARQUET TEXT, SEQ RCFILE, ORC, etc. AVRO, PARQUET TEXT, SEQ RCFILE, ORC, etc. Framework dependent Metadata Amazon Redshift Catalog Glue Catalog Glue Catalog Glue Catalog or Hive Meta-store Auth/Access controls IAM, Users, groups, and access controls IAM, Users, groups, and access controls IAM IAM, LDAP & Kerberos UDF support Yes (Scalar) Yes (Scalar) No Yes Slow Which Interactive Analytics Tool Should I Use?
  • 45. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved What About Extract Transform and Load? ETLSTORE PROCESS / ANALYZE Data Integration Partners Reduce the effort to move, cleanse, synchronize, manage, and automatize data-related processes. AWS Glue is a fully managed (serverless) ETL service that makes it simple and cost-effective to categorize your data, clean it, enrich it, and move it reliably between various data stores. Data Catalog Job Authoring Job Execution AWS Glue
  • 46. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT STORE PROCESS/ANALYZE Amazon DynamoDB Amazon ElastiCache Amazon RDS Amazon Aurora HotWarm SQLNoSQLCacheFile Mobile apps Web apps Devices Sensors IoT platforms AWS IoT Data centers AWS Direct Connect Migration Snowball Logging Amazon CloudWatch AWS CloudTrail RECORDS FILES STREAMS DataTransport&LoggingIoTApplications Amazon S3 Amazon DAX Import/export ETL CONSUME Apache Kafka Amazon Kinesis Streams Amazon Kinesis Firehose Hot Stream Amazon DynamoDB Streams Streaming Amazon Kinesis Analytics KCL Apps AWS Lambda Stream Amazon EMR Fast Amazon ES Amazon Redshift & Spectrum Presto Amazon EMR Amazon Athena BatchInteractive FastSlow Predictive AmazonAI Lex Polly AML Rekognition AWS DL AMIs SageMaker DeepLens
  • 47. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved CONSUME
  • 48. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • BI/AI Applications – Amazon EC2 or ECS Containers – AWS Greengrass • Data Science – Amazon SageMaker – Notebooks – DS Platforms – IDEs • Analysis and Visualization • Amazon QuickSight • Tableau • …. COLLECT STORE CONSUMEPROCESS/ANALYZEETL Amazon QuickSight Analysis&visualization Model Train/ Eval Models Deploy Business users DevOps Data Scientists DataSceince AI Apps Amazon ECS Apps AWS Greengrass Amazon SageMaker Predictive AmazonAI Lex Polly AML Rekognition AWS DL AMIs SageMaker DeepLens
  • 49. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Putting It All Together
  • 50. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved COLLECT STORE CONSUMEPROCESS/ANALYZE Amazon DynamoDB Amazon ElastiCache Amazon RDS Amazon Aurora HotWarm SQLNoSQLCacheFile Mobile apps Web apps Devices Sensors IoT platforms AWS IoT Data centers AWS Direct Connect Migration Snowball Logging Amazon CloudWatch AWS CloudTrail RECORDS FILES STREAMS Amazon QuickSight Analysis&visualization DataTransport&LoggingIoTApplications Amazon S3 Amazon DAX Import/export Amazon ECS Model Train/ Eval Models Deploy ETL Apache Kafka Amazon Kinesis Streams Amazon Kinesis Firehose Hot Stream Amazon DynamoDB Streams DataSceince AI Apps Amazon ECS Apps AWS Greengrass Amazon SageMaker Streaming Amazon Kinesis Analytics KCL Apps AWS Lambda Stream Amazon EMR Fast Amazon ES Amazon Redshift & Spectrum Presto Amazon EMR Amazon Athena BatchInteractive FastSlow Predictive AmazonAI Lex Polly AML Rekognition AWS DL AMIs SageMaker DeepLens
  • 51. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Introductory concepts • Key evolutionary points for Data Ecosystem • Key data stages – Collect – Store – Analyze – Consume • Design Patterns • Summary
  • 52. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Real-time Interactive Batch Spark Streaming AWS Lambda KCL apps Amazon Redshift Amazon Redshift Hive Spark Presto ProcessingTechnology FastSlow Answers Hive Native apps KCL apps AWS Lambda Amazon Athena Amazon Kinesis Amazon DynamoDB/RDS Amazon S3Data Hot Cold Data Store
  • 53. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Real-time Analytics Amazon EMR KCL app AWS Lambda Spark Streaming Amazon AI Real-time prediction Amazon ElastiCache (Redis) Amazon DynamoDB Amazon RDS Amazon ES App state or Materialized View KPI Process Store Amazon Kinesis Amazon Kinesis Analytics Amazon SNS NotificationsAlerts Amazon S3 Log Amazon KinesisFan out Downstream
  • 54. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Interactive and Batch Analytics process store Batch Interactive Amazon EMR Hive Pig Spark Amazon AI Batch prediction Real-time prediction Amazon S3 Files Amazon Kinesis Firehose Amazon Kinesis Analytics Amazon Redshift Amazon ES Consume Amazon EMR Presto Spark Amazon Athena
  • 55. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Real-time App state or Materialized View Interactive and Batch Data Lake Amazon S3 Amazon Redshift Amazon EMR Presto Hive Pig Spark Amazon ElastiCache Amazon DynamoDB Amazon RDS Amazon ES AWS Lambda Spark Streaming on Amazon EMR Applications Amazon Kinesis KCL Amazon AI Amazon DynamoDB Amazon RDS Change Data Capture or Export Transactions Stream Files Amazon Kinesis Analytics Amazon Athena Amazon Kinesis Firehose Amazon ES
  • 56. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved What about Metadata? • Glue Data Catalog • Hive Metastore compliant • Crawlers - Detect new data, schema, partitions • Search - Metadata discovery • Amazon Athena, Amazon EMR, and Amazon Redshift Spectrum compatible • Hive Metastore (Presto, Spark, Hive, Pig) • Can be hosted on Amazon RDS Data Catalog Metastore RDS Glue Catalog AWS Glue
  • 57. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Security & Governance • AWS Identity and Access Management (IAM) • Amazon Cognito • Amazon CloudWatch & AWS CloudTrail • AWS KMS • AWS Directory Service • Apache Ranger Security & Governance IAM Amazon CloudWatch AWS CloudTrail AWS AWSKMS AWS CloudHSM AWS Directory Service Amazon Cognito
  • 58. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Introductory concepts • Key evolutionary points for Data Ecosystem • Key data stages – Collect – Store – Analyze – Consume • Design Patterns • Summary
  • 59. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Data lake Reference Architecture Summary
  • 60. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Summary • Build decoupled systems • Data → Store → Process → Store → Analyze → Answers • Use the right tool for the job • Data structure, latency, throughput, access patterns • Leverage AWS managed and serverless services • Scalable/elastic, available, reliable, secure, no/low admin • Use log-centric design patterns • Immutable logs, data lake, materialized views • Be cost-conscious • Big data ≠ Big cost • Enable your applications with AI/ML
  • 61. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved Pop-up Loft aws.amazon.com/activate Everything and Anything Startups Need to Get Started on AWS