SlideShare uma empresa Scribd logo
1 de 75
Baixar para ler offline
S U M M I T
San ta Clara
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Databases on AWS: The right tool for
the right job
Joseph Idziorek
Principal Product Manager
Amazon Web Services
A D B 2 0 3
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Purpose built
The right tool for
the right job
https://www.allthingsdistributed.com/2018/06/purpose-built-databases-in-aws.html
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Agenda
1. Common data categories and how we got here
2. Discuss the purpose and use cases of each data model
3. Demo
4. Where to learn more
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Data categories and common use cases
Relational Key value Document In-memory Graph
Referential
integrity, ACID
transactions,
schema-
on-write
Low-latency,
key lookups
with high
throughput and
fast ingestion
of data
Indexing and
storing
documents
with support
for query on
any attribute
Microseconds
latency, key-
based queries,
and specialized
data structures
Creating and
navigating
data relations
easily and quickly
Lift and shift,
EMR, CRM,
finance
Real-time bidding,
shopping cart,
social
Content
management,
personalization,
mobile
Leaderboards,
real-time
analytics, caching
Fraud detection,
social networking,
recommendation
engine
Search
Indexing and
searching
semistructured
logs and data
Product catalog,
help, and FAQs,
full text
Time series Ledger
Collect, store,
and process data
sequenced by
time
IoT applications,
event tracking
Complete,
immutable,and
verifiablehistory of
all changes to
application data
Systems
of record,
supply chain,
healthcare,
registrations,
financial
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS: Purpose-built databases
Relational Key value Document In-memory Graph Search
Amazon
DynamoDB
Amazon
Neptune
AmazonRDS
Aurora CommercialCommunity
Amazon
ElastiCache
Amazon
Elasticsearch
Service
Amazon
DocumentDB
Time series Ledger
Amazon
Timestream
Amazon
Quantum
Ledger
DatabaseMemcachedRedis
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
1970 1980 1990 2000
Oracle DB2
SQL Server
MySQL
PostgreSQL
DynamoDB
Redis
MongoDB
Elasticsearch
Neptune
CassandraAccess
Aurora
2010
Timestream
QLDB
Amazon
DocumentDB
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
400,000+ customers using AWS databases
and analytics services
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Two fundamental areas of focus
“Lift and shift” existing
apps to the cloud
Quickly build new
apps in the cloud
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS Database Migration Service (AWS DMS)
M i g r a t i n g
d a t a b a s e s
t o A W S
Migrate between on-premises and AWS
Migrate between databases
Automatedschema conversion
Datareplication for
migration with zero downtime
100,000+
databases migrated
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Modern apps create new requirements
Users: 1 million+
Data volume: TB–PB–EB
Locality: Global
Performance: Milliseconds–microseconds
Request rate: Millions
Access: Web, mobile, IoT, devices
Scale: Up-down, Out-in
Economics: Pay for what you use
Developer access: No assembly requiredSocial mediaRide hailing Media streaming Dating
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Airbnb uses different databases based
on the purpose
User search history: Amazon DynamoDB
• Massive data volume
• Need quick lookups for personalized search
Session state: Amazon ElastiCache
• In-memory store for submillisecond site rendering
Relational data: Amazon RDS
• Referential integrity
• Primary transactional database
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Challenge
Wanted to enable anyoneto learn a
language for free.
Solution
Purpose-built databases from AWS:
• DynamoDB: 31B items tracking which
language exercises completed
• Aurora:Primary transactionaldatabase
for user data
• ElastiCache:Instant access to common
words and phrases
Result
More people learning a languageon
Duolingothan entire US school system
300M total users
7B exercises per month
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Relational model
Data model
• Data is stored in rows and tables
• Data is normalized
• Strict schema
• Relationships established via
keys enforced by the system
• Data accuracy and consistency
• Complex queries
Patient
* Patient ID
FirstName
LastName
Gender
DOB
* Doctor ID
Visit
* Visit ID
* Patient ID
* Hospital ID
Date
* Treatment ID
Medical Treatment
* Treatment ID
Procedure
How Performed
AdverseOutcome
Contraindication
Doctor
* Doctor ID
FirstName
LastName
Medical Specialty
* Hospital Affiliation
Hospital
* Hospital ID
Name
Address
Rating
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Relational model Patient
* Patient ID
FirstName
LastName
Gender
DOB
* Doctor ID
Visit
* Visit ID
* Patient ID
* Hospital ID
Date
* Treatment ID
Medical Treatment
* Treatment ID
Procedure
How Performed
AdverseOutcome
Contraindication
Doctor
* Doctor ID
FirstName
LastName
Medical Specialty
* Hospital Affiliation
Hospital
* Hospital ID
Name
Address
Rating
Query model: SQL
SELECT
d.first_name, d.last_name, count(*)
FROM
visit as v,
hospital as h,
doctor as d
WHERE
v.hospital_id = h.hospital_id
AND h.hospital_id = d.hospital
AND v.t_date > date_trunc('week’,
CURRENT_TIMESTAMP - interval '1 week')
GROUP BY
d.first_name, d.last_name;
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Use cases
Amazon.com is the world’s leading
online retailer. The Amazon
Transaction Risk Management Services
(TRMS) team migrated more than 100
on-premises Oracle databases to
Amazon Aurora.
Enterprise applications Software as a service (SaaS)
applications
Web and mobile gaming
“We are excited to announce the
availability of Remedy ITSM on
AWS Cloud. Our customers can
now benefit from best-in-class
cloud service, installation time
that’s three times faster, and lower
cost of ownership by supporting
migration to Aurora PostgreSQL."
“At the UN, we operate multiple
websites with global reach that
require mission-critical reliability
and consistent performance. We
were able to achieve superb
performance, even with Amazon
Aurora’s smallest database engine.”
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Aurora
MySQL and PostgreSQL-compatible relational database built for the cloud
Performance and availability of commercial-grade databases at 1/10 the cost
Performance
and scalability
Availability
and durability
Highly secure Fully managed
5x throughput of standard MySQL
and 3x of standardPostgreSQL;
scale-out up to
15 read replicas
Fault-tolerant,self-healing storage;
six copies of data
across three Availability Zones;
continuousbackup to Amazon S3
Network isolation,
encryption at rest/transit
Managedby Amazon RDS:
No hardwareprovisioning,software
patching, setup, configuration,or
backups
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Aurora ascendant: How we designed a cloud-
native relational database
Blog: https://www.allthingsdistributed.com/
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Relational Database Service (Amazon RDS)
Managed relational database service with a choice of six popular database engines
Easy to administer Available and durable Highly scalable Fast and secure
No need for infrastructure
provisioning,installing,and
maintainingDB software
Automatic Multi-AZ datareplication;
automatedbackup, snapshots,
failover
Scale database compute
and storage with a few
clicks with no app
downtime
SSD storage and guaranteed
provisionedI/O; data
encryption at rest and in transit
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Key-value data
• Simple key-value pairs
• Partitioned by keys
• Resilient to failure
• High throughput, low-
latency reads and writes
• Consistent performance at
scale
Table 1
…
…
Partitions
…
Highly partitionable data
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Gamers
PrimaryKey
Attributes
Gamer Tag Type
Hammer57
Rank
Level Points Tier
87 4050 Elite
Status
Health Progress
90 30
Weapon
Class Damage Range
Taser 87% 50
FluffyDuffy
Rank
Level Points Tier
5 1072 Trainee
Status
Health Progress
37 8
// Status of Hammer57
GET {
TableName:"Gamers",
Key: {
"GamerTag":"Hammer57",
"Type":"Status” } }
// Return all Hammer57
Gamers
GamerTag = :a
:a Hammer57
Key-value data
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Use cases for key-value data
Social media
Capital One uses DynamoDB to reduce
latency for its mobile applications by
moving its mainframe transactions to a
serverless architecture for unbound scale
Lyft leverages the scalability of DynamoDB
for multiple data stores, including a ride-
tracking system that stores GPS
coordinates for all rides
Snap migrated its largest storage
workload, Snapchat Stories, to
DynamoDB and improved
performance while reducing costs
Mobile IoT
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon DynamoDB
Fast and flexible key value database service for any scale
Performance at scale Serverless Comprehensive
security
Global database for
global users and apps
Consistent, single-digit millisecond
response times at any scale; built
applicationswith virtuallyunlimited
throughput
No server provisioning,software
patching, or upgrades; scales up
or down automatically;
continuouslybacks up your data
Encrypts all data by defaultand
fully integrateswith AWS identify
and Access Managementfor
robust security
Build global applicationswith
fast access to localdata by
easily replicatingtables
across multiple AWS regions
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Document databases
• Data is stored in JSON-like
documents
• Documents map naturally to
how humans model data
• Flexible schema and indexing
• Expressive query language built
for documents (ad hoc queries
and aggregations)
JSON documents are
first-class objects
of the database
{
id: 1,
name: "sue",
age: 26,
email: "sue@example.com",
promotions: ["new user", "5%", "dog lover"],
memberDate: 2018-2-22,
shoppingCart: [
{product:"abc", quantity:2, cost:19.99},
{product:"edf", quantity:3, cost: 2.99}
]
}
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Evolution of document databases
JSON became the de
facto data
interchange format
Friction when
converting JSON to
the relational
model
Object-relational
mappings (ORMs) were
created to help with
this friction
Document
databases solved
the problem
(Client)
(App) (Database)
JSON
!=
RelationalJSON
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Use cases for document data
User profiles
{
id: 181276,
username: "sue1942",
name: {first: "Susan",
last: "Benoit"}
}
{
id: 181276,
username: "sue1942",
name: {first: "Susan",
last: "Benoit"}
}
{
id: 181276,
username: "sue1942",
name: {first: "Susan",
last: "Benoit"},
ExploidingSnails: {
hi_score: 3185400,
global_rank: 5139,
bonus_levels: true
},
promotions: ["new user","5%","snail lover"]
}
{
id: 181276,
username: "sue1942",
name: {first: "Susan",
last: "Benoit"},
ExploidingSnails: {
hi_score: 3185400,
global_rank: 5139,
bonus_levels: true
}
}
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Use cases for document data
Mobile
Retail and
marketing
User profilesCatalog
Content
management
Personalization
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon DocumentDB
Fast,scalable, and fullymanaged MongoDB-compatible databaseservice
Fast Scalable Fully managed MongoDB
compatible
Millionsof requests per
second with millisecondlatency;
twice the
throughput of MongoDB
Separation of compute and
storage enablesboth layersto
scale independently; scale out
to 15 read
replicasin minutes
Managed by AWS:
no hardware provisioning; auto
patching,quick setup,secure,
and automatic backups
Compatible with MongoDB3.6;
use the same SDKs, tools,and
applications with Amazon
DocumentDB
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
In-memory
• No persistence, in-memory
• Microsecond performance
• Simple commands for
manipulating in memory data
structures
• Strings, hashes, lists, sets,
and sorted sets
Database
Memory
(buffer pool)
Disk
Query processor Get/Put APIs
Memory
Milliseconds to microseconds (10x faster)
Storage engine
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
In-memory
set a "hello" // Set key "a" with a string value and no expiration OK
get a // Get value for key "a"
"hello"
get b // Get value for key "b" results in miss
(nil)
set b "Good-bye" EX 5 // Set key "b" with a string value and a 5 second expiration
"Good-bye"
get b // Get value for key "b" "Good-bye"
// wait >= 5 seconds
get b (nil) // key has expired, nothing returned
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Use cases for in-memory data
Caching
Reducing our database queries up to
95% with simple caching
McDonald’s uses a number of AWS
services, including Amazon EC2, Elastic
Load Balancing, Amazon EBS, and Amazon
ElastiCache, to support its global POS
system, including 200,000 registers and
300,000 POS devices
Airbnb uses ElastiCache for site-
wide caching
Real-time bidding Real time
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon ElastiCache
Redis and Memcached compatible, in-memory datastoreand cache
Redis and Memcached
compatible
Extreme
performance
Secure and
reliable
Easily scalable
Fully compatible with open source
Redisand Memcached
In-memory datastore and
cache for microsecond
response times
Network isolation,encryption
at-rest/in-transit,HIPAA, PIC,
FedRAMP,Multi-AZ, and
automatic failover
Scales writesand reads with
shardingand replicas
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Search: Full text search
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Search
The bright
blue
butterfly
hangs on the
breeze
It’s best to
forget the
great sky and
to retire from
every wind.
Under blue sky,
in bright
sunlight, one
need search
around.
Document 1
Document 2
Document 3
a
and
around
every
for
from
in
is
it
not
on
one
the
to
under
ID Term Document
1 best 2
2 blue 1, 3
3 bright 1,3
4 breeze 1
5 butterfly 1
6 forget 2
7 great 2
8 hangs 1
9 need 3
10 retire 2
11 search 3
12 sky 2, 3
13 wind 2
Inverted indexStopword list
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Search
_search?q=house
"hits": {
"total": 85,
"max_score": 6.6137657,
"hits": [{
"_index": "movies",
"_type": "movie",
"_id": "tt0077975",
"_score": 6.6137657,
"_source": { "directors": [ "John Landis" ],
"release_date": "1978-07-27T00:00:00Z",
"rating": 7.5,
"genres": [ "Comedy", "Romance" ],
"image_url": "http://ia.jpg
"plot": "At a 1962 College, Dean Vernon Wormer…",
"title": "Animal House",
"rank": 527,
"running_time_secs": 6540,
"actors": [ "John Belushi","Karen Allen","Tom Hulce" ],
"year": 1978, "id": "tt0077975" }
},
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Search use cases
Log analytics
Adobe uses Amazon Elasticsearch
Service to cost-effectively analyze
and visualize large amount of log
data for its developer platform,
which at peak receives over 200K
API calls per second.
Full text search Clickstream analytics
Hearst Corporation built a
clickstream analytics platform using
Amazon Elasticsearch Service,
Amazon Kinesis Data Streams, and
Amazon Kinesis Data Firehose to
transmit and process 30 terabytes
of data a day from 300+ Hearst
websites worldwide.
MirrorWeb uses Amazon Elasticsearch
Service to make the UK Government
and UK Parliament’s web archives
searchable. With Amazon
Elasticsearch Service, MirrorWeb
indexed 1.4B documents for just $337
and indexed 146M docs per hour—14x
faster than the previously used
technology.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Elasticsearch Service
Fully managed, reliable, and scalableElasticsearch service
Easy to use Scalable Highly available Secure
Deploy a production-ready
Elasticsearch
cluster in minutes
Resize your cluster
with a few clicks
or a single API call
Replicate across
Availability Zones,with
monitoringand
automated self-healing
Deploy into your VPC
and restrict access
using security groups
and IAM policies
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Graph data
• Relationships are first-class objects
• Data is modeled and queries as a
graph
• Vertices connected by Edges
• Creating and navigating relations
between data easily
and quickly
Purchased Purchased
Follows
Purchased
Knows
Product
Sport
Follows
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Graph
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Graph
Social networking
Life sciences Network & IT operationsFraud detection
Recommendations Knowledge graphs
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Graph
Fraud detection,
social networking,
recommendation engine
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Graph use case
// Product recommendationto a user PURCHASED PURCHASED
PURCHASED
PURCHASED
KNOWS
BOOK#1
BOOK#2
PURCHASED
BOOK#3
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Neptune
Fully managed graph database
Fast Reliable Easy Open
Query billionsof relationships
with millisecond latency
Six replicasof your data across
three AZs with fully backup and
restore
Build powerful querieseasily
with Gremlin and SPARQL
SupportsApache TinkerPop & W3C
RDF graph models
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Retail demo application
Demo application:
1. Available today
2. On GitHub:
/aws-samples/aws-
bookstore-demo-app
3. One-click
AWS CloudFormation
deployment
Search
Indexing and
searching
semistructured logs
and data
Product
search
Amazon
Neptune
AmazonElasticsearch
Service
Key-value
High
throughput, Low-
latency
reads
and writes, endless
scale
Shopping cart, user
profile
Graph
Quickly and
easily create and
navigate
relationships
between
data
Product
recommendation
In-memory
Query by key
with
microsecond
latency
Product leaderboard
DynamoDB ElastiCache
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Time series data
What is time series data?
What is special about a time
series database? A sequence of data points
recorded over a time interval
Time is the
single primary axis
of the data model
t
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Time series use case
Application events
IoT sensor readings
DevOps data
Humidity
% Water vapor
91.094.086.093.0
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Existing time-series databasesRelational databases
Difficult to
maintainhigh
availability
Difficult to scale Limited data
lifecycle
management
Inefficient
time series data
processing
Unnaturalfor
time series data
Rigid schema
inflexiblefor
fast moving
time series data
Building with time series data is challenging
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Timestream (sign up for the preview)
Fast, scalable, fully managed time-series database
1,000xfaster and 1/10 the cost
of relational databases
Collect data at the rate of
millionsof inserts per second
(10M/second)
Trillions of
daily events
Adaptivequery processing
engine maintainssteady,
predictableperformance
Time-seriesanalytics
Built-in functionsfor
interpolation,smoothing, and
approximation
Serverless
Automatedsetup, configuration,
server provisioning,software
patching
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Common customer use cases
Ledgers with centralized control
Healthcare
Verify and track hospital
equipment inventory
Manufacturers
Track distribution of a
recalled product
HR & payroll
Track changes to an
individual’s profile
Government
Track vehicle title history
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Challenges with building ledgers
Adds unnecessary
complexity
BlockchainRDBMS – audit tables
Difficult to
maintain
Hard to use and
slow
Hard to build
Custom audit functionality using
triggers or stored procedures
Impossible to verify
No way to verify changes made to
data by sys admins
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Ledger database concepts
C | H
J Journal
C | H Current | History
Current | History
Journal
Ledger comprises
J
L
Ledger databaseL
Journal determines Current | History
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
ID Manufacturer Model Year VIN Owner
ID Version Start End Manufacturer Model Year VIN Owner
How it works
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
INSERTINTO cars <<
{ 'Manufacturer': 'Tesla',
'Model': 'Model S',
'Year': '2012',
'VIN': '123456789',
'Owner': 'Traci Russel'}
>>
FROMcars WHEREVIN= '123456789' UPDATEowner ='Ronnie Nash'FROMcars WHEREVIN= '123456789' UPDATEowner ='Elmer Hubbard'
J
ID Version Start End Manufacturer Model Year VIN Owner
1 1 07/16/2012 NULL Tesla Model S 2012 123456789 Traci Russell
current.cars
C
history.cars
H ID Version Start End Manufacturer Model Year VIN Owner
1 1 07/16/2012 08/03/2013 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 NULL Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start End Manufacturer Model Year VIN Owner
1 1 07/16/2012 08/03/2013 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 09/02/2016 Tesla Model S 2012 123456789 Ronnie Nash
1 3 09/02/2016 NULL Tesla Model S 2012 123456789 Elmer Hubbard
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Elmer Hubbard
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H (x) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (x) UPDATE cars
ID:1
Owner: Elmer Hubbard
Metadata: {
Date: 09/02/2016
}
H (x)
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Amazon Quantum Ledger Database (Amazon QLDB)
(preview)
Fully managed ledger database
Track and verify history of all changes made to your application’sdata
Immutable
Maintainsa sequenced record of all
changes to your data,which cannot
be deleted or modified;you can to
query and analyze the full history
Cryptographically
verifiable
Uses cryptography to
generate a secure output
file of your data’s history
Easy to use
Easy to use, letting you
use familiar database
capabilitieslike SQL APIs for
querying the data
Highly scalable
Executes 2–3x as many
transactions than ledgers
in common blockchain
frameworks
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Benefits of purpose-built databases
Better
performance Better scale
More
functionality
Easier to
debug
Independence
between teams
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Team Internet
AWS re:Invent 2017: Running Lean Architectures:
How to Optimize for Cost Efficiency (ARC303)
“For every single purpose within our application, we
our now using different databases”
“…now we can pick the right tool for every job we
have”
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
https://aws.amazon.com/this-is-my-architecture/
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon
RDS
Amazon
ElastiCache
Amazon
Redshift
Amazon ES
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS: Purpose-built databases
Relational Key-value Document In-memory Graph Search
Amazon
DynamoDB
Amazon
Neptune
AmazonRDS
Aurora CommercialCommunity
Amazon
ElastiCache
Amazon
Elasticsearch
Service
Amazon
DocumentDB
Time series Ledger
Amazon
Timestream
Amazon
QLDB
MemcachedRedis
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Additional resources
Andy Jassy’s re:Invent 2017/2018 keynote:
Databases
2017: https://www.youtube.com/watch?v=1IxDLeFQKPk&feature=youtu.be&t=37m47s
2018: https://youtu.be/ZOIkOnW640A?t=3238
Werner Vogel’s blog: A one size fits all database
doesn't fit anyone
https://www.allthingsdistributed.com/2018/06/purpose-built-databases-in-aws.html
https://aws.amazon.com/products/databases/
AWS Databases
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Additional resources
https://www.youtube.com/watch?v=hwnNbLXN4vA
https://www.youtube.com/watch?v=-pb-DkD6cWg
AWS re:Invent 2018: Databases on AWS: The Right
Tool for the Right Job (DAT205-R1)
AWS re:Invent 2018: Building with AWS Databases: Match
Your Workload to the Right Database (DAT301)
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Thank you!
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
Joseph Idziorek
josephidziorek@
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I TS UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.

Mais conteúdo relacionado

Mais procurados

IBM MQ High Availability 2019
IBM MQ High Availability 2019IBM MQ High Availability 2019
IBM MQ High Availability 2019David Ware
 
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...Weaveworks
 
Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...
Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...
Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...Amazon Web Services
 
Accelerate Your Cloud Migration Journey.pdf
Accelerate Your Cloud Migration Journey.pdfAccelerate Your Cloud Migration Journey.pdf
Accelerate Your Cloud Migration Journey.pdfAmazon Web Services
 
Kubernetes on AWS with Amazon EKS - MAD301 - New York AWS Summit
Kubernetes on AWS with Amazon EKS - MAD301 - New York AWS SummitKubernetes on AWS with Amazon EKS - MAD301 - New York AWS Summit
Kubernetes on AWS with Amazon EKS - MAD301 - New York AWS SummitAmazon Web Services
 
Considerations for your Cloud Journey
Considerations for your Cloud JourneyConsiderations for your Cloud Journey
Considerations for your Cloud JourneyAmazon Web Services
 
Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018
Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018
Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018Amazon Web Services
 
AWS Initiate Day Dublin 2019 – Cost Optimization on AWS
AWS Initiate Day Dublin 2019 – Cost Optimization on AWSAWS Initiate Day Dublin 2019 – Cost Optimization on AWS
AWS Initiate Day Dublin 2019 – Cost Optimization on AWSAmazon Web Services
 
Understand AWS Pricing
Understand AWS PricingUnderstand AWS Pricing
Understand AWS PricingLynn Langit
 
Data Migration to AWS with DataSync & Transfer for SFTP
Data Migration to AWS with DataSync & Transfer for SFTPData Migration to AWS with DataSync & Transfer for SFTP
Data Migration to AWS with DataSync & Transfer for SFTPAmazon Web Services
 
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...Amazon Web Services
 
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...Amazon Web Services Korea
 
Running Kubernetes with Amazon EKS - AWS Online Tech Talks
Running Kubernetes with Amazon EKS - AWS Online Tech TalksRunning Kubernetes with Amazon EKS - AWS Online Tech Talks
Running Kubernetes with Amazon EKS - AWS Online Tech TalksAmazon Web Services
 
Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results
Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results
Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results Amazon Web Services
 
An Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - WebinarAn Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - WebinarAmazon Web Services
 

Mais procurados (20)

IBM MQ High Availability 2019
IBM MQ High Availability 2019IBM MQ High Availability 2019
IBM MQ High Availability 2019
 
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
 
Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...
Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...
Build a Hybrid Cloud Architecture Using AWS Landing Zones (ENT304-R1) - AWS r...
 
Accelerate Your Cloud Migration Journey.pdf
Accelerate Your Cloud Migration Journey.pdfAccelerate Your Cloud Migration Journey.pdf
Accelerate Your Cloud Migration Journey.pdf
 
Kubernetes on AWS with Amazon EKS - MAD301 - New York AWS Summit
Kubernetes on AWS with Amazon EKS - MAD301 - New York AWS SummitKubernetes on AWS with Amazon EKS - MAD301 - New York AWS Summit
Kubernetes on AWS with Amazon EKS - MAD301 - New York AWS Summit
 
Containers - Amazon EKS
Containers - Amazon EKSContainers - Amazon EKS
Containers - Amazon EKS
 
Become an AWS IAM Policy Ninja
Become an AWS IAM Policy NinjaBecome an AWS IAM Policy Ninja
Become an AWS IAM Policy Ninja
 
Considerations for your Cloud Journey
Considerations for your Cloud JourneyConsiderations for your Cloud Journey
Considerations for your Cloud Journey
 
AWS Migration Planning Roadmap
AWS Migration Planning RoadmapAWS Migration Planning Roadmap
AWS Migration Planning Roadmap
 
Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018
Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018
Microsoft SQL Server Migration Strategies (WIN302) - AWS re:Invent 2018
 
Cloud Migration Workshop
Cloud Migration WorkshopCloud Migration Workshop
Cloud Migration Workshop
 
AWS Initiate Day Dublin 2019 – Cost Optimization on AWS
AWS Initiate Day Dublin 2019 – Cost Optimization on AWSAWS Initiate Day Dublin 2019 – Cost Optimization on AWS
AWS Initiate Day Dublin 2019 – Cost Optimization on AWS
 
AWS Cloud Security Fundamentals
AWS Cloud Security FundamentalsAWS Cloud Security Fundamentals
AWS Cloud Security Fundamentals
 
Understand AWS Pricing
Understand AWS PricingUnderstand AWS Pricing
Understand AWS Pricing
 
Data Migration to AWS with DataSync & Transfer for SFTP
Data Migration to AWS with DataSync & Transfer for SFTPData Migration to AWS with DataSync & Transfer for SFTP
Data Migration to AWS with DataSync & Transfer for SFTP
 
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
Introduction to the Well-Architected Framework and Tool - SVC208 - Anaheim AW...
 
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
 
Running Kubernetes with Amazon EKS - AWS Online Tech Talks
Running Kubernetes with Amazon EKS - AWS Online Tech TalksRunning Kubernetes with Amazon EKS - AWS Online Tech Talks
Running Kubernetes with Amazon EKS - AWS Online Tech Talks
 
Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results
Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results
Cloud Adoption Framework Define Your Cloud Strategy and Accelerate Results
 
An Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - WebinarAn Introduction to the AWS Well Architected Framework - Webinar
An Introduction to the AWS Well Architected Framework - Webinar
 

Semelhante a Databases on AWS - The right tool for the right job - ADB203 - Santa Clara AWS Summit.pdf

AWS CZSK Webinar 2019.07: Databazy na AWS
AWS CZSK Webinar 2019.07: Databazy na AWSAWS CZSK Webinar 2019.07: Databazy na AWS
AWS CZSK Webinar 2019.07: Databazy na AWSVladimir Simek
 
Database su AWS scegliere lo strumento giusto per il giusto obiettivo
Database su AWS scegliere lo strumento giusto per il giusto obiettivoDatabase su AWS scegliere lo strumento giusto per il giusto obiettivo
Database su AWS scegliere lo strumento giusto per il giusto obiettivoAmazon Web Services
 
How to choose the right database for your workload
How to choose the right database for your workloadHow to choose the right database for your workload
How to choose the right database for your workloadAmazon Web Services
 
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...AWS Summits
 
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...Amazon Web Services
 
The Future of Database Migration is Cloud, AWS Federal Pop-Up Loft
The Future of Database Migration is Cloud, AWS Federal Pop-Up LoftThe Future of Database Migration is Cloud, AWS Federal Pop-Up Loft
The Future of Database Migration is Cloud, AWS Federal Pop-Up LoftAmazon Web Services
 
All Databases Are Equal, But Some Databases Are More Equal than Others: How t...
All Databases Are Equal, But Some Databases Are More Equal than Others: How t...All Databases Are Equal, But Some Databases Are More Equal than Others: How t...
All Databases Are Equal, But Some Databases Are More Equal than Others: How t...javier ramirez
 
Building with Purpose-Built Databases: Match Your workload to the Right Database
Building with Purpose-Built Databases: Match Your workload to the Right DatabaseBuilding with Purpose-Built Databases: Match Your workload to the Right Database
Building with Purpose-Built Databases: Match Your workload to the Right DatabaseAWS Summits
 
Databases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWSDatabases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWSAmazon Web Services
 
Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...
Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...
Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...Amazon Web Services
 
Choosing the Right Database (Database Freedom)
Choosing the Right Database (Database Freedom)Choosing the Right Database (Database Freedom)
Choosing the Right Database (Database Freedom)Amazon Web Services
 
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...AWS Summits
 
Building Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS Summit
Building Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS SummitBuilding Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS Summit
Building Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS SummitAmazon Web Services
 
Right Tool for the Right Job The Journey Beyond Relational Databases and why ...
Right Tool for the Right Job The Journey Beyond Relational Databases and why ...Right Tool for the Right Job The Journey Beyond Relational Databases and why ...
Right Tool for the Right Job The Journey Beyond Relational Databases and why ...Amazon Web Services
 
Building data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdf
Building data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdfBuilding data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdf
Building data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdfAmazon Web Services
 
From Strategy to Reality: Better Decisions With Data
From Strategy to Reality: Better Decisions With DataFrom Strategy to Reality: Better Decisions With Data
From Strategy to Reality: Better Decisions With DataAmazon Web Services
 
How to go from zero to data lakes in days - ADB202 - New York AWS Summit
How to go from zero to data lakes in days - ADB202 - New York AWS SummitHow to go from zero to data lakes in days - ADB202 - New York AWS Summit
How to go from zero to data lakes in days - ADB202 - New York AWS SummitAmazon Web Services
 
Deriving Value with Next Gen Analytics and ML Architectures
Deriving Value with Next Gen Analytics and ML ArchitecturesDeriving Value with Next Gen Analytics and ML Architectures
Deriving Value with Next Gen Analytics and ML ArchitecturesAmazon Web Services
 
AWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWS
AWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWSAWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWS
AWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWSSteven Hsieh
 
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019Amazon Web Services
 

Semelhante a Databases on AWS - The right tool for the right job - ADB203 - Santa Clara AWS Summit.pdf (20)

AWS CZSK Webinar 2019.07: Databazy na AWS
AWS CZSK Webinar 2019.07: Databazy na AWSAWS CZSK Webinar 2019.07: Databazy na AWS
AWS CZSK Webinar 2019.07: Databazy na AWS
 
Database su AWS scegliere lo strumento giusto per il giusto obiettivo
Database su AWS scegliere lo strumento giusto per il giusto obiettivoDatabase su AWS scegliere lo strumento giusto per il giusto obiettivo
Database su AWS scegliere lo strumento giusto per il giusto obiettivo
 
How to choose the right database for your workload
How to choose the right database for your workloadHow to choose the right database for your workload
How to choose the right database for your workload
 
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
 
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
Building with AWS Databases: Match Your Workload to the Right Database | AWS ...
 
The Future of Database Migration is Cloud, AWS Federal Pop-Up Loft
The Future of Database Migration is Cloud, AWS Federal Pop-Up LoftThe Future of Database Migration is Cloud, AWS Federal Pop-Up Loft
The Future of Database Migration is Cloud, AWS Federal Pop-Up Loft
 
All Databases Are Equal, But Some Databases Are More Equal than Others: How t...
All Databases Are Equal, But Some Databases Are More Equal than Others: How t...All Databases Are Equal, But Some Databases Are More Equal than Others: How t...
All Databases Are Equal, But Some Databases Are More Equal than Others: How t...
 
Building with Purpose-Built Databases: Match Your workload to the Right Database
Building with Purpose-Built Databases: Match Your workload to the Right DatabaseBuilding with Purpose-Built Databases: Match Your workload to the Right Database
Building with Purpose-Built Databases: Match Your workload to the Right Database
 
Databases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWSDatabases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWS
 
Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...
Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...
Databases on AWS: The Right Tool for the Right Job (DAT205-R1) - AWS re:Inven...
 
Choosing the Right Database (Database Freedom)
Choosing the Right Database (Database Freedom)Choosing the Right Database (Database Freedom)
Choosing the Right Database (Database Freedom)
 
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
AWS Summit Singapore 2019 | Big Data Analytics Architectural Patterns and Bes...
 
Building Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS Summit
Building Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS SummitBuilding Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS Summit
Building Data Lakes for Analytics on AWS - ADB201 - Anaheim AWS Summit
 
Right Tool for the Right Job The Journey Beyond Relational Databases and why ...
Right Tool for the Right Job The Journey Beyond Relational Databases and why ...Right Tool for the Right Job The Journey Beyond Relational Databases and why ...
Right Tool for the Right Job The Journey Beyond Relational Databases and why ...
 
Building data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdf
Building data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdfBuilding data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdf
Building data lakes for analytics on AWS - ADB201 - Santa Clara AWS Summit.pdf
 
From Strategy to Reality: Better Decisions With Data
From Strategy to Reality: Better Decisions With DataFrom Strategy to Reality: Better Decisions With Data
From Strategy to Reality: Better Decisions With Data
 
How to go from zero to data lakes in days - ADB202 - New York AWS Summit
How to go from zero to data lakes in days - ADB202 - New York AWS SummitHow to go from zero to data lakes in days - ADB202 - New York AWS Summit
How to go from zero to data lakes in days - ADB202 - New York AWS Summit
 
Deriving Value with Next Gen Analytics and ML Architectures
Deriving Value with Next Gen Analytics and ML ArchitecturesDeriving Value with Next Gen Analytics and ML Architectures
Deriving Value with Next Gen Analytics and ML Architectures
 
AWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWS
AWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWSAWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWS
AWS 2019 Taipei Summit - Building Serverless Analytics Platform on AWS
 
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
 

Mais de 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
 

Mais de 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
 

Databases on AWS - The right tool for the right job - ADB203 - Santa Clara AWS Summit.pdf

  • 1. S U M M I T San ta Clara
  • 2. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Databases on AWS: The right tool for the right job Joseph Idziorek Principal Product Manager Amazon Web Services A D B 2 0 3
  • 3. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Purpose built The right tool for the right job https://www.allthingsdistributed.com/2018/06/purpose-built-databases-in-aws.html
  • 4. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Agenda 1. Common data categories and how we got here 2. Discuss the purpose and use cases of each data model 3. Demo 4. Where to learn more
  • 5. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Data categories and common use cases Relational Key value Document In-memory Graph Referential integrity, ACID transactions, schema- on-write Low-latency, key lookups with high throughput and fast ingestion of data Indexing and storing documents with support for query on any attribute Microseconds latency, key- based queries, and specialized data structures Creating and navigating data relations easily and quickly Lift and shift, EMR, CRM, finance Real-time bidding, shopping cart, social Content management, personalization, mobile Leaderboards, real-time analytics, caching Fraud detection, social networking, recommendation engine Search Indexing and searching semistructured logs and data Product catalog, help, and FAQs, full text Time series Ledger Collect, store, and process data sequenced by time IoT applications, event tracking Complete, immutable,and verifiablehistory of all changes to application data Systems of record, supply chain, healthcare, registrations, financial
  • 6. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS: Purpose-built databases Relational Key value Document In-memory Graph Search Amazon DynamoDB Amazon Neptune AmazonRDS Aurora CommercialCommunity Amazon ElastiCache Amazon Elasticsearch Service Amazon DocumentDB Time series Ledger Amazon Timestream Amazon Quantum Ledger DatabaseMemcachedRedis
  • 7. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T 1970 1980 1990 2000 Oracle DB2 SQL Server MySQL PostgreSQL DynamoDB Redis MongoDB Elasticsearch Neptune CassandraAccess Aurora 2010 Timestream QLDB Amazon DocumentDB
  • 8. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T 400,000+ customers using AWS databases and analytics services
  • 9. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Two fundamental areas of focus “Lift and shift” existing apps to the cloud Quickly build new apps in the cloud
  • 10. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS Database Migration Service (AWS DMS) M i g r a t i n g d a t a b a s e s t o A W S Migrate between on-premises and AWS Migrate between databases Automatedschema conversion Datareplication for migration with zero downtime 100,000+ databases migrated
  • 11. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Modern apps create new requirements Users: 1 million+ Data volume: TB–PB–EB Locality: Global Performance: Milliseconds–microseconds Request rate: Millions Access: Web, mobile, IoT, devices Scale: Up-down, Out-in Economics: Pay for what you use Developer access: No assembly requiredSocial mediaRide hailing Media streaming Dating
  • 12. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Airbnb uses different databases based on the purpose User search history: Amazon DynamoDB • Massive data volume • Need quick lookups for personalized search Session state: Amazon ElastiCache • In-memory store for submillisecond site rendering Relational data: Amazon RDS • Referential integrity • Primary transactional database
  • 13. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Challenge Wanted to enable anyoneto learn a language for free. Solution Purpose-built databases from AWS: • DynamoDB: 31B items tracking which language exercises completed • Aurora:Primary transactionaldatabase for user data • ElastiCache:Instant access to common words and phrases Result More people learning a languageon Duolingothan entire US school system 300M total users 7B exercises per month
  • 14. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 15. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Relational model Data model • Data is stored in rows and tables • Data is normalized • Strict schema • Relationships established via keys enforced by the system • Data accuracy and consistency • Complex queries Patient * Patient ID FirstName LastName Gender DOB * Doctor ID Visit * Visit ID * Patient ID * Hospital ID Date * Treatment ID Medical Treatment * Treatment ID Procedure How Performed AdverseOutcome Contraindication Doctor * Doctor ID FirstName LastName Medical Specialty * Hospital Affiliation Hospital * Hospital ID Name Address Rating
  • 16. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Relational model Patient * Patient ID FirstName LastName Gender DOB * Doctor ID Visit * Visit ID * Patient ID * Hospital ID Date * Treatment ID Medical Treatment * Treatment ID Procedure How Performed AdverseOutcome Contraindication Doctor * Doctor ID FirstName LastName Medical Specialty * Hospital Affiliation Hospital * Hospital ID Name Address Rating Query model: SQL SELECT d.first_name, d.last_name, count(*) FROM visit as v, hospital as h, doctor as d WHERE v.hospital_id = h.hospital_id AND h.hospital_id = d.hospital AND v.t_date > date_trunc('week’, CURRENT_TIMESTAMP - interval '1 week') GROUP BY d.first_name, d.last_name;
  • 17. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
  • 18. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Use cases Amazon.com is the world’s leading online retailer. The Amazon Transaction Risk Management Services (TRMS) team migrated more than 100 on-premises Oracle databases to Amazon Aurora. Enterprise applications Software as a service (SaaS) applications Web and mobile gaming “We are excited to announce the availability of Remedy ITSM on AWS Cloud. Our customers can now benefit from best-in-class cloud service, installation time that’s three times faster, and lower cost of ownership by supporting migration to Aurora PostgreSQL." “At the UN, we operate multiple websites with global reach that require mission-critical reliability and consistent performance. We were able to achieve superb performance, even with Amazon Aurora’s smallest database engine.”
  • 19. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Aurora MySQL and PostgreSQL-compatible relational database built for the cloud Performance and availability of commercial-grade databases at 1/10 the cost Performance and scalability Availability and durability Highly secure Fully managed 5x throughput of standard MySQL and 3x of standardPostgreSQL; scale-out up to 15 read replicas Fault-tolerant,self-healing storage; six copies of data across three Availability Zones; continuousbackup to Amazon S3 Network isolation, encryption at rest/transit Managedby Amazon RDS: No hardwareprovisioning,software patching, setup, configuration,or backups
  • 20. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Aurora ascendant: How we designed a cloud- native relational database Blog: https://www.allthingsdistributed.com/
  • 21. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Relational Database Service (Amazon RDS) Managed relational database service with a choice of six popular database engines Easy to administer Available and durable Highly scalable Fast and secure No need for infrastructure provisioning,installing,and maintainingDB software Automatic Multi-AZ datareplication; automatedbackup, snapshots, failover Scale database compute and storage with a few clicks with no app downtime SSD storage and guaranteed provisionedI/O; data encryption at rest and in transit
  • 22. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 23. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Key-value data • Simple key-value pairs • Partitioned by keys • Resilient to failure • High throughput, low- latency reads and writes • Consistent performance at scale Table 1 … … Partitions … Highly partitionable data
  • 24. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Gamers PrimaryKey Attributes Gamer Tag Type Hammer57 Rank Level Points Tier 87 4050 Elite Status Health Progress 90 30 Weapon Class Damage Range Taser 87% 50 FluffyDuffy Rank Level Points Tier 5 1072 Trainee Status Health Progress 37 8 // Status of Hammer57 GET { TableName:"Gamers", Key: { "GamerTag":"Hammer57", "Type":"Status” } } // Return all Hammer57 Gamers GamerTag = :a :a Hammer57 Key-value data
  • 25. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Use cases for key-value data Social media Capital One uses DynamoDB to reduce latency for its mobile applications by moving its mainframe transactions to a serverless architecture for unbound scale Lyft leverages the scalability of DynamoDB for multiple data stores, including a ride- tracking system that stores GPS coordinates for all rides Snap migrated its largest storage workload, Snapchat Stories, to DynamoDB and improved performance while reducing costs Mobile IoT
  • 26. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon DynamoDB Fast and flexible key value database service for any scale Performance at scale Serverless Comprehensive security Global database for global users and apps Consistent, single-digit millisecond response times at any scale; built applicationswith virtuallyunlimited throughput No server provisioning,software patching, or upgrades; scales up or down automatically; continuouslybacks up your data Encrypts all data by defaultand fully integrateswith AWS identify and Access Managementfor robust security Build global applicationswith fast access to localdata by easily replicatingtables across multiple AWS regions
  • 27. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 28. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Document databases • Data is stored in JSON-like documents • Documents map naturally to how humans model data • Flexible schema and indexing • Expressive query language built for documents (ad hoc queries and aggregations) JSON documents are first-class objects of the database { id: 1, name: "sue", age: 26, email: "sue@example.com", promotions: ["new user", "5%", "dog lover"], memberDate: 2018-2-22, shoppingCart: [ {product:"abc", quantity:2, cost:19.99}, {product:"edf", quantity:3, cost: 2.99} ] }
  • 29. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Evolution of document databases JSON became the de facto data interchange format Friction when converting JSON to the relational model Object-relational mappings (ORMs) were created to help with this friction Document databases solved the problem (Client) (App) (Database) JSON != RelationalJSON
  • 30. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Use cases for document data User profiles { id: 181276, username: "sue1942", name: {first: "Susan", last: "Benoit"} } { id: 181276, username: "sue1942", name: {first: "Susan", last: "Benoit"} } { id: 181276, username: "sue1942", name: {first: "Susan", last: "Benoit"}, ExploidingSnails: { hi_score: 3185400, global_rank: 5139, bonus_levels: true }, promotions: ["new user","5%","snail lover"] } { id: 181276, username: "sue1942", name: {first: "Susan", last: "Benoit"}, ExploidingSnails: { hi_score: 3185400, global_rank: 5139, bonus_levels: true } }
  • 31. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Use cases for document data Mobile Retail and marketing User profilesCatalog Content management Personalization
  • 32. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon DocumentDB Fast,scalable, and fullymanaged MongoDB-compatible databaseservice Fast Scalable Fully managed MongoDB compatible Millionsof requests per second with millisecondlatency; twice the throughput of MongoDB Separation of compute and storage enablesboth layersto scale independently; scale out to 15 read replicasin minutes Managed by AWS: no hardware provisioning; auto patching,quick setup,secure, and automatic backups Compatible with MongoDB3.6; use the same SDKs, tools,and applications with Amazon DocumentDB
  • 33. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 34. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T In-memory • No persistence, in-memory • Microsecond performance • Simple commands for manipulating in memory data structures • Strings, hashes, lists, sets, and sorted sets Database Memory (buffer pool) Disk Query processor Get/Put APIs Memory Milliseconds to microseconds (10x faster) Storage engine
  • 35. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T In-memory set a "hello" // Set key "a" with a string value and no expiration OK get a // Get value for key "a" "hello" get b // Get value for key "b" results in miss (nil) set b "Good-bye" EX 5 // Set key "b" with a string value and a 5 second expiration "Good-bye" get b // Get value for key "b" "Good-bye" // wait >= 5 seconds get b (nil) // key has expired, nothing returned
  • 36. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Use cases for in-memory data Caching Reducing our database queries up to 95% with simple caching McDonald’s uses a number of AWS services, including Amazon EC2, Elastic Load Balancing, Amazon EBS, and Amazon ElastiCache, to support its global POS system, including 200,000 registers and 300,000 POS devices Airbnb uses ElastiCache for site- wide caching Real-time bidding Real time
  • 37. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon ElastiCache Redis and Memcached compatible, in-memory datastoreand cache Redis and Memcached compatible Extreme performance Secure and reliable Easily scalable Fully compatible with open source Redisand Memcached In-memory datastore and cache for microsecond response times Network isolation,encryption at-rest/in-transit,HIPAA, PIC, FedRAMP,Multi-AZ, and automatic failover Scales writesand reads with shardingand replicas
  • 38. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 39. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Search: Full text search
  • 40. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Search The bright blue butterfly hangs on the breeze It’s best to forget the great sky and to retire from every wind. Under blue sky, in bright sunlight, one need search around. Document 1 Document 2 Document 3 a and around every for from in is it not on one the to under ID Term Document 1 best 2 2 blue 1, 3 3 bright 1,3 4 breeze 1 5 butterfly 1 6 forget 2 7 great 2 8 hangs 1 9 need 3 10 retire 2 11 search 3 12 sky 2, 3 13 wind 2 Inverted indexStopword list
  • 41. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Search _search?q=house "hits": { "total": 85, "max_score": 6.6137657, "hits": [{ "_index": "movies", "_type": "movie", "_id": "tt0077975", "_score": 6.6137657, "_source": { "directors": [ "John Landis" ], "release_date": "1978-07-27T00:00:00Z", "rating": 7.5, "genres": [ "Comedy", "Romance" ], "image_url": "http://ia.jpg "plot": "At a 1962 College, Dean Vernon Wormer…", "title": "Animal House", "rank": 527, "running_time_secs": 6540, "actors": [ "John Belushi","Karen Allen","Tom Hulce" ], "year": 1978, "id": "tt0077975" } },
  • 42. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Search use cases Log analytics Adobe uses Amazon Elasticsearch Service to cost-effectively analyze and visualize large amount of log data for its developer platform, which at peak receives over 200K API calls per second. Full text search Clickstream analytics Hearst Corporation built a clickstream analytics platform using Amazon Elasticsearch Service, Amazon Kinesis Data Streams, and Amazon Kinesis Data Firehose to transmit and process 30 terabytes of data a day from 300+ Hearst websites worldwide. MirrorWeb uses Amazon Elasticsearch Service to make the UK Government and UK Parliament’s web archives searchable. With Amazon Elasticsearch Service, MirrorWeb indexed 1.4B documents for just $337 and indexed 146M docs per hour—14x faster than the previously used technology.
  • 43. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Elasticsearch Service Fully managed, reliable, and scalableElasticsearch service Easy to use Scalable Highly available Secure Deploy a production-ready Elasticsearch cluster in minutes Resize your cluster with a few clicks or a single API call Replicate across Availability Zones,with monitoringand automated self-healing Deploy into your VPC and restrict access using security groups and IAM policies
  • 44. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 45. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Graph data • Relationships are first-class objects • Data is modeled and queries as a graph • Vertices connected by Edges • Creating and navigating relations between data easily and quickly Purchased Purchased Follows Purchased Knows Product Sport Follows
  • 46. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Graph
  • 47. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Graph Social networking Life sciences Network & IT operationsFraud detection Recommendations Knowledge graphs
  • 48. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Graph Fraud detection, social networking, recommendation engine
  • 49. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Graph use case // Product recommendationto a user PURCHASED PURCHASED PURCHASED PURCHASED KNOWS BOOK#1 BOOK#2 PURCHASED BOOK#3
  • 50. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Neptune Fully managed graph database Fast Reliable Easy Open Query billionsof relationships with millisecond latency Six replicasof your data across three AZs with fully backup and restore Build powerful querieseasily with Gremlin and SPARQL SupportsApache TinkerPop & W3C RDF graph models
  • 51. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 52. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Retail demo application Demo application: 1. Available today 2. On GitHub: /aws-samples/aws- bookstore-demo-app 3. One-click AWS CloudFormation deployment Search Indexing and searching semistructured logs and data Product search Amazon Neptune AmazonElasticsearch Service Key-value High throughput, Low- latency reads and writes, endless scale Shopping cart, user profile Graph Quickly and easily create and navigate relationships between data Product recommendation In-memory Query by key with microsecond latency Product leaderboard DynamoDB ElastiCache
  • 53. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 54. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Time series data What is time series data? What is special about a time series database? A sequence of data points recorded over a time interval Time is the single primary axis of the data model t
  • 55. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Time series use case Application events IoT sensor readings DevOps data Humidity % Water vapor 91.094.086.093.0
  • 56. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Existing time-series databasesRelational databases Difficult to maintainhigh availability Difficult to scale Limited data lifecycle management Inefficient time series data processing Unnaturalfor time series data Rigid schema inflexiblefor fast moving time series data Building with time series data is challenging
  • 57. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Timestream (sign up for the preview) Fast, scalable, fully managed time-series database 1,000xfaster and 1/10 the cost of relational databases Collect data at the rate of millionsof inserts per second (10M/second) Trillions of daily events Adaptivequery processing engine maintainssteady, predictableperformance Time-seriesanalytics Built-in functionsfor interpolation,smoothing, and approximation Serverless Automatedsetup, configuration, server provisioning,software patching
  • 58. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 59. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Common customer use cases Ledgers with centralized control Healthcare Verify and track hospital equipment inventory Manufacturers Track distribution of a recalled product HR & payroll Track changes to an individual’s profile Government Track vehicle title history
  • 60. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Challenges with building ledgers Adds unnecessary complexity BlockchainRDBMS – audit tables Difficult to maintain Hard to use and slow Hard to build Custom audit functionality using triggers or stored procedures Impossible to verify No way to verify changes made to data by sys admins
  • 61. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Ledger database concepts C | H J Journal C | H Current | History Current | History Journal Ledger comprises J L Ledger databaseL Journal determines Current | History
  • 62. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T ID Manufacturer Model Year VIN Owner ID Version Start End Manufacturer Model Year VIN Owner How it works ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell INSERTINTO cars << { 'Manufacturer': 'Tesla', 'Model': 'Model S', 'Year': '2012', 'VIN': '123456789', 'Owner': 'Traci Russel'} >> FROMcars WHEREVIN= '123456789' UPDATEowner ='Ronnie Nash'FROMcars WHEREVIN= '123456789' UPDATEowner ='Elmer Hubbard' J ID Version Start End Manufacturer Model Year VIN Owner 1 1 07/16/2012 NULL Tesla Model S 2012 123456789 Traci Russell current.cars C history.cars H ID Version Start End Manufacturer Model Year VIN Owner 1 1 07/16/2012 08/03/2013 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 NULL Tesla Model S 2012 123456789 Ronnie Nash ID Version Start End Manufacturer Model Year VIN Owner 1 1 07/16/2012 08/03/2013 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 09/02/2016 Tesla Model S 2012 123456789 Ronnie Nash 1 3 09/02/2016 NULL Tesla Model S 2012 123456789 Elmer Hubbard ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Elmer Hubbard INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H (x) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (x) UPDATE cars ID:1 Owner: Elmer Hubbard Metadata: { Date: 09/02/2016 } H (x)
  • 63. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon Quantum Ledger Database (Amazon QLDB) (preview) Fully managed ledger database Track and verify history of all changes made to your application’sdata Immutable Maintainsa sequenced record of all changes to your data,which cannot be deleted or modified;you can to query and analyze the full history Cryptographically verifiable Uses cryptography to generate a secure output file of your data’s history Easy to use Easy to use, letting you use familiar database capabilitieslike SQL APIs for querying the data Highly scalable Executes 2–3x as many transactions than ledgers in common blockchain frameworks
  • 64. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 65. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Benefits of purpose-built databases Better performance Better scale More functionality Easier to debug Independence between teams
  • 66. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Team Internet AWS re:Invent 2017: Running Lean Architectures: How to Optimize for Cost Efficiency (ARC303) “For every single purpose within our application, we our now using different databases” “…now we can pick the right tool for every job we have”
  • 67. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T https://aws.amazon.com/this-is-my-architecture/
  • 68. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Amazon RDS Amazon ElastiCache Amazon Redshift Amazon ES
  • 69. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS: Purpose-built databases Relational Key-value Document In-memory Graph Search Amazon DynamoDB Amazon Neptune AmazonRDS Aurora CommercialCommunity Amazon ElastiCache Amazon Elasticsearch Service Amazon DocumentDB Time series Ledger Amazon Timestream Amazon QLDB MemcachedRedis
  • 70. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 71. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Additional resources Andy Jassy’s re:Invent 2017/2018 keynote: Databases 2017: https://www.youtube.com/watch?v=1IxDLeFQKPk&feature=youtu.be&t=37m47s 2018: https://youtu.be/ZOIkOnW640A?t=3238 Werner Vogel’s blog: A one size fits all database doesn't fit anyone https://www.allthingsdistributed.com/2018/06/purpose-built-databases-in-aws.html https://aws.amazon.com/products/databases/ AWS Databases
  • 72. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Additional resources https://www.youtube.com/watch?v=hwnNbLXN4vA https://www.youtube.com/watch?v=-pb-DkD6cWg AWS re:Invent 2018: Databases on AWS: The Right Tool for the Right Job (DAT205-R1) AWS re:Invent 2018: Building with AWS Databases: Match Your Workload to the Right Database (DAT301)
  • 73. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
  • 74. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Thank you! S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved. Joseph Idziorek josephidziorek@
  • 75. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I TS UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.