SlideShare una empresa de Scribd logo
1 de 70
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Pop-up Loft
Introduction to Amazon Quantum Ledger Database (QLDB)
Karan Desai Samir Karande
Solutions Architect Sr. Manager, Solutions Architecture
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
A history of record keeping
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Ancient
Mesopotamia
3500 BC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Record keeping today
Banking & Finance
Keeping track of transactions,
trades and accounts
Manufacturing
Recording components
used in manufacturing
Transport & Logistics
Tracking transportation
of goods
E-Commerce
Where’s my stuff?
HR & Payroll
Tracking changes to an
individual’s profile
Government
Tracking vehicle title
history
$
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Challenges customers face
Difficult to
manage & scale
Impossible
to verify
Traditional database approaches
Error prone and
incomplete
Resource
intensive
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Challenges customers face
Hard
to scale
Difficult to
maintain
Designed for a
different purpose
Adds unnecessary
complexity
Blockchain & distributed ledgers
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Amazon Quantum Ledger Database (QLDB) (Preview)
• Fully managed ledger database
• Track and verify history of all changes made to your application’s data
Immutable
Maintains a sequenced record of
all changes to your data, which
cannot be deleted or modified;
you have the ability 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
capabilities like SQL APIs
for querying the data
Highly scalable
Executes 2–3X as many
transactions as ledgers
in common blockchain
frameworks
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Ledger database concepts
C | H
J Journal
C |
H
Current | History
J
L
Ledger databaseL
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
ID Manufacturer Model Year VIN Owner
ID Version Start Manufacturer Model Year VIN Owner
J
history.cars
H
current.cars
C
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
ID Manufacturer Model Year VIN Owner
ID Version Start Manufacturer Model Year VIN Owner
J
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>current.cars
C
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
ID Manufacturer Model Year VIN Owner
ID Version Start Manufacturer Model Year VIN Owner
J
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
ID Version Start Manufacturer Model Year VIN Owner
J
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
DELETE FROM cars WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H (T3)
DELETE FROM cars WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H (T3)
DELETE FROM cars WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H (T3)
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
1 3 09/02/2016 Deleted
DELETE FROM cars WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
ID Manufacturer Model Year VIN Owner
ID Version Start Manufacturer Model Year VIN Owner
current.cars
C
history.cars
H
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
ID Manufacturer Model Year VIN Owner
ID Version Start Manufacturer Model Year VIN Owner
current.cars
C
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
ID Version Start Manufacturer Model Year VIN Owner
current.cars
C
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
INSERT INTO cars <<
{ 'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012',
'VIN':'123456789',
'Owner':'Traci Russell' }
>>
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Traci Russell
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
ID Manufacturer Model Year VIN Owner
1 Tesla Model S 2012 123456789 Ronnie Nash
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
DELETE FROM cars WHERE VIN = '123456789'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
DELETE FROM cars WHERE VIN = '123456789'
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
1 3 09/02/2016 NULL NULL NULL NULL NULL
ID Manufacturer Model Year VIN Owner
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Traditional database
current.cars
C
history.cars
H
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
1 3 09/02/2016 NULL NULL NULL NULL NULL
ID Manufacturer Model Year VIN Owner
2012-07-16 – New entry: {
'Manufacturer':'Tesla',
'Model':'Model S',
'Year':'2012', …
2013-08-03 – Owner
updated to Ronnie Nash
2016-09-02 – Removed
from system
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What does verifiability really mean?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What does verifiability really mean?
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What does verifiability really mean?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What does verifiability really mean?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What does verifiability really mean?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How it works
J
history.cars
H
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
current.cars
C
H (T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H (T2)
ID Manufacturer Model Year VIN Owner
DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H (T3)
ID Version Start Manufacturer Model Year VIN Owner
1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
1 3 09/02/2016 Deleted
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Verifiability in Amazon QLDB
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1)
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
SHA-256 H(T1) =
2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Verifiability in Amazon QLDB
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H(T2)
UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
SHA-256T1
H(T1) =
2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Verifiability in Amazon QLDB
T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H(T2) DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H(T3)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Verifiability in Amazon QLDB
H(T3) =
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H(T2) DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H(T3)
T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Verifiability in Amazon QLDB
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H(T2) DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H(T3)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Verifiability in Amazon QLDB
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/01/2013
}
H(T2) DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H(T3)
UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/01/2013
}
SHA-256 43108b5499717ed1bba3f5c5e0ddaa4836f57c5658a74dbd0c581c02e513583cT1
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Computing SHA-256
https://doi.org/10.6028/NIST.FIPS.180-4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Computing SHA-256
O=> sha256sum
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7 -
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Computing SHA-256
https://www.movable-type.co.uk/scripts/sha256.html
SHA-256 Cryptographic Hash Algorithm © 2005-2017 Chris Veness
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Computing SHA-256
http://www.righto.com/2014/09/mining-bitcoin-with-pencil-and-paper.html
“Mining Bitcoin with
pencil and paper”
Ken Shirriff
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
More on digests
H(T3) =
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Traci Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H(T2) DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H(T3)
T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
More on digests
J
INSERT cars
ID:1
Manufacturer: Tesla
Model: Model S
Year: 2012
VIN: 123456789
Owner: Tracy Russell
Metadata: {
Date:07/16/2012
}
H(T1) UPDATE cars
ID:1
Owner: Ronnie Nash
Metadata: {
Date:08/03/2013
}
H(T2) DELETE cars
ID:1
Metadata: {
Date: 09/02/2016
}
H(T3)
H(T3) =
H(T3) =
T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
T1 25d0b44e6e8878151646ffc1fea4eb85c3e4bf4baec212a9fcf67b6d5a81e01a
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Early database data models
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Relational data model
Customers
ID Name Email Address ID Phone
Orders
ID Customer ID Date Total Shipping
Address ID
Status
Order Items
ID Order ID Item Quantity Price
Addresses
ID Street City State ZIP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Modern programming languages
order = {
'Id': "694262fb-9d43-4f94-8c3b-12ae66ce74f9”,
'Customer': <Customer object at 0x0x7f7e057243a8>,
'Date': 2018-11-23 11:25:36.00,
'Total': 137.53,
'ShippingAddr': {
'Street': "100 Elm St",
'City': "Seattle",
'State': "WA",
'Zip': "98101",
},
'Status': "Processing",
'Items': [ {
'SKU': “70ffb504-af12-4612-8b74-0dac4f8fd534”,
'Quantity': 2,
'Price': 15.21
}
. . .
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Document data model
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Querying Amazon QLDB
Traditional SQL
QLDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Querying Amazon QLDB
Traditional SQL
QLDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Where should I use Amazon QLDB?
Healthcare
Maintain accurate records
of services, equipment and
inventory
Manufacturers
Track distribution of a
recalled product
HR & Payroll
Track changes to an
individual’s profile
Government
Track vehicle title
history
Ledgers with centralized control
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Sign up for our preview today!
https://aws.amazon.com/qldb
© 2017, 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

Más contenido relacionado

La actualidad más candente

Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceAmazon Web Services
 
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저Amazon Web Services Korea
 
Building system-of-record applications with Amazon QLDB - SVC218 - New York A...
Building system-of-record applications with Amazon QLDB - SVC218 - New York A...Building system-of-record applications with Amazon QLDB - SVC218 - New York A...
Building system-of-record applications with Amazon QLDB - SVC218 - New York A...Amazon Web Services
 
Deep Dive on Amazon RDS (Relational Database Service)
Deep Dive on Amazon RDS (Relational Database Service)Deep Dive on Amazon RDS (Relational Database Service)
Deep Dive on Amazon RDS (Relational Database Service)Amazon Web Services
 
Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...
Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...
Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...Amazon Web Services
 
AWS S3 Cost Optimization
AWS S3 Cost OptimizationAWS S3 Cost Optimization
AWS S3 Cost OptimizationEric Kim
 
비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021
비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021
비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021Amazon Web Services Korea
 
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...Amazon Web Services
 
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...Amazon Web Services Korea
 
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례Amazon Web Services Korea
 
Building Serverless ETL Pipelines
Building Serverless ETL PipelinesBuilding Serverless ETL Pipelines
Building Serverless ETL PipelinesAmazon 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
 
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...Amazon Web Services Korea
 

La actualidad más candente (20)

AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2) AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2)
 
Building Data Lakes with AWS
Building Data Lakes with AWSBuilding Data Lakes with AWS
Building Data Lakes with AWS
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Deep Dive: Amazon RDS
Deep Dive: Amazon RDSDeep Dive: Amazon RDS
Deep Dive: Amazon RDS
 
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
 
Getting Started with Amazon EC2
Getting Started with Amazon EC2Getting Started with Amazon EC2
Getting Started with Amazon EC2
 
Building system-of-record applications with Amazon QLDB - SVC218 - New York A...
Building system-of-record applications with Amazon QLDB - SVC218 - New York A...Building system-of-record applications with Amazon QLDB - SVC218 - New York A...
Building system-of-record applications with Amazon QLDB - SVC218 - New York A...
 
Deep Dive on Amazon RDS (Relational Database Service)
Deep Dive on Amazon RDS (Relational Database Service)Deep Dive on Amazon RDS (Relational Database Service)
Deep Dive on Amazon RDS (Relational Database Service)
 
Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...
Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...
Creating an Effective Roadmap for Your Cloud Journey (ENT225-R1) - AWS re:Inv...
 
Cloud Migration Workshop
Cloud Migration WorkshopCloud Migration Workshop
Cloud Migration Workshop
 
AWS S3 Cost Optimization
AWS S3 Cost OptimizationAWS S3 Cost Optimization
AWS S3 Cost Optimization
 
비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021
비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021
비즈니스 리더를 위한 디지털 트랜스포메이션 트렌드 - 김지현, 김영현 AWS 사업개발 매니저 :: AWS re:Invent re:Cap 2021
 
What is AWS Glue
What is AWS GlueWhat is AWS Glue
What is AWS Glue
 
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
 
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
 
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
 
Building Serverless ETL Pipelines
Building Serverless ETL PipelinesBuilding Serverless ETL Pipelines
Building Serverless ETL Pipelines
 
AWS glue technical enablement training
AWS glue technical enablement trainingAWS glue technical enablement training
AWS glue technical enablement training
 
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 DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
 

Similar a How Do I Know I Need a Ledger Database? An Introduction to Amazon QLDB

How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...
How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...
How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...Amazon Web Services
 
[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...
[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...
[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...Amazon Web Services
 
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...Amazon Web Services Japan
 
Can Automotive be as agile as Unicorns?
Can Automotive be as agile as Unicorns?Can Automotive be as agile as Unicorns?
Can Automotive be as agile as Unicorns?Adrian Hornsby
 
Alexa連携デバイスクラウドを構成するAWS ソリューション
Alexa連携デバイスクラウドを構成するAWS ソリューションAlexa連携デバイスクラウドを構成するAWS ソリューション
Alexa連携デバイスクラウドを構成するAWS ソリューションToshiaki Enami
 
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...Amazon Web Services
 
SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...
SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...
SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...Amazon Web Services
 
Introduzione a blockchain e registri digitali
Introduzione a blockchain e registri digitaliIntroduzione a blockchain e registri digitali
Introduzione a blockchain e registri digitaliAmazon Web Services
 
Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...
Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...
Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...Amazon Web Services
 
AWS reInvent Recap 線上研討會
AWS reInvent Recap 線上研討會AWS reInvent Recap 線上研討會
AWS reInvent Recap 線上研討會Amazon Web Services
 
20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと
20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと
20180310 jawsdays SA LT いまCloudFormationで知るべき10のことYukitaka Ohmura
 
SRV207 Orchestrating AWS Lambda with Step Functions
 SRV207 Orchestrating AWS Lambda with Step Functions SRV207 Orchestrating AWS Lambda with Step Functions
SRV207 Orchestrating AWS Lambda with Step FunctionsAmazon Web Services
 
Neptune, the Graph Database | AWS Floor28
Neptune, the Graph Database | AWS Floor28Neptune, the Graph Database | AWS Floor28
Neptune, the Graph Database | AWS Floor28Amazon Web Services
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Boaz Ziniman
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Amazon Web Services
 

Similar a How Do I Know I Need a Ledger Database? An Introduction to Amazon QLDB (20)

How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...
How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...
How Do I Know I Need a Ledger Database? An Intro to Amazon QLDB: re:Invent 20...
 
[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...
[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...
[NEW LAUNCH!] How do I know I need a ledger database? An Introduction to Amaz...
 
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Managed Blockchain & Amazon ...
 
Can Automotive be as agile as Unicorns?
Can Automotive be as agile as Unicorns?Can Automotive be as agile as Unicorns?
Can Automotive be as agile as Unicorns?
 
Alexa連携デバイスクラウドを構成するAWS ソリューション
Alexa連携デバイスクラウドを構成するAWS ソリューションAlexa連携デバイスクラウドを構成するAWS ソリューション
Alexa連携デバイスクラウドを構成するAWS ソリューション
 
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
Leadership Session: Digital Advertising - Customer Learning & the Road Ahead ...
 
SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...
SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...
SRV316_How Agero Is Preventing and Detecting Vehicle Accidents in Real Time w...
 
Introduzione a blockchain e registri digitali
Introduzione a blockchain e registri digitaliIntroduzione a blockchain e registri digitali
Introduzione a blockchain e registri digitali
 
Telsa Recruit
Telsa RecruitTelsa Recruit
Telsa Recruit
 
APN Live Taipei - Overview
APN Live Taipei - OverviewAPN Live Taipei - Overview
APN Live Taipei - Overview
 
Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...
Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...
Building a Data Lake for Your Enterprise, ft. Sysco (STG309) - AWS re:Invent ...
 
AWS reInvent Recap 線上研討會
AWS reInvent Recap 線上研討會AWS reInvent Recap 線上研討會
AWS reInvent Recap 線上研討會
 
APN-live-hk-opening
APN-live-hk-openingAPN-live-hk-opening
APN-live-hk-opening
 
20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと
20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと
20180310 jawsdays SA LT いまCloudFormationで知るべき10のこと
 
SRV207 Orchestrating AWS Lambda with Step Functions
 SRV207 Orchestrating AWS Lambda with Step Functions SRV207 Orchestrating AWS Lambda with Step Functions
SRV207 Orchestrating AWS Lambda with Step Functions
 
Neptune, the Graph Database | AWS Floor28
Neptune, the Graph Database | AWS Floor28Neptune, the Graph Database | AWS Floor28
Neptune, the Graph Database | AWS Floor28
 
Best of AWS re:Invent 2017
Best of AWS re:Invent 2017Best of AWS re:Invent 2017
Best of AWS re:Invent 2017
 
graymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdfgraymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdf
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
 

Más 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
 
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
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 

Más 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...
 
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
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 

How Do I Know I Need a Ledger Database? An Introduction to Amazon QLDB

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Pop-up Loft Introduction to Amazon Quantum Ledger Database (QLDB) Karan Desai Samir Karande Solutions Architect Sr. Manager, Solutions Architecture
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved A history of record keeping
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Ancient Mesopotamia 3500 BC
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Record keeping today Banking & Finance Keeping track of transactions, trades and accounts Manufacturing Recording components used in manufacturing Transport & Logistics Tracking transportation of goods E-Commerce Where’s my stuff? HR & Payroll Tracking changes to an individual’s profile Government Tracking vehicle title history $
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Challenges customers face Difficult to manage & scale Impossible to verify Traditional database approaches Error prone and incomplete Resource intensive
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Challenges customers face Hard to scale Difficult to maintain Designed for a different purpose Adds unnecessary complexity Blockchain & distributed ledgers
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Amazon Quantum Ledger Database (QLDB) (Preview) • Fully managed ledger database • Track and verify history of all changes made to your application’s data Immutable Maintains a sequenced record of all changes to your data, which cannot be deleted or modified; you have the ability 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 capabilities like SQL APIs for querying the data Highly scalable Executes 2–3X as many transactions as ledgers in common blockchain frameworks
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Ledger database concepts C | H J Journal C | H Current | History J L Ledger databaseL
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works ID Manufacturer Model Year VIN Owner ID Version Start Manufacturer Model Year VIN Owner J history.cars H current.cars C
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works ID Manufacturer Model Year VIN Owner ID Version Start Manufacturer Model Year VIN Owner J history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >>current.cars C
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works ID Manufacturer Model Year VIN Owner ID Version Start Manufacturer Model Year VIN Owner J history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >> INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1)
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works ID Version Start Manufacturer Model Year VIN Owner J history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >> INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >> INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash DELETE FROM cars WHERE VIN = '123456789'
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H (T3) DELETE FROM cars WHERE VIN = '123456789'
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H (T3) DELETE FROM cars WHERE VIN = '123456789'
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H (T3) ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash 1 3 09/02/2016 Deleted DELETE FROM cars WHERE VIN = '123456789'
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database ID Manufacturer Model Year VIN Owner ID Version Start Manufacturer Model Year VIN Owner current.cars C history.cars H
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database ID Manufacturer Model Year VIN Owner ID Version Start Manufacturer Model Year VIN Owner current.cars C history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >>
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database ID Version Start Manufacturer Model Year VIN Owner current.cars C history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >> ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H INSERT INTO cars << { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', 'VIN':'123456789', 'Owner':'Traci Russell' } >> ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Traci Russell ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789'
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789' ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H UPDATE cars SET owner = 'Ronnie Nash' WHERE VIN = '123456789' ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
  • 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash
  • 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H ID Manufacturer Model Year VIN Owner 1 Tesla Model S 2012 123456789 Ronnie Nash ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash DELETE FROM cars WHERE VIN = '123456789'
  • 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H DELETE FROM cars WHERE VIN = '123456789' ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash 1 3 09/02/2016 NULL NULL NULL NULL NULL ID Manufacturer Model Year VIN Owner
  • 43. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Traditional database current.cars C history.cars H ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash 1 3 09/02/2016 NULL NULL NULL NULL NULL ID Manufacturer Model Year VIN Owner 2012-07-16 – New entry: { 'Manufacturer':'Tesla', 'Model':'Model S', 'Year':'2012', … 2013-08-03 – Owner updated to Ronnie Nash 2016-09-02 – Removed from system
  • 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What does verifiability really mean?
  • 45. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What does verifiability really mean? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  • 46. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What does verifiability really mean?
  • 47. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What does verifiability really mean?
  • 48. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What does verifiability really mean?
  • 49. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How it works J history.cars H INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } current.cars C H (T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H (T2) ID Manufacturer Model Year VIN Owner DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H (T3) ID Version Start Manufacturer Model Year VIN Owner 1 1 07/16/2012 Tesla Model S 2012 123456789 Traci Russell 1 2 08/03/2013 Tesla Model S 2012 123456789 Ronnie Nash 1 3 09/02/2016 Deleted
  • 50. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Verifiability in Amazon QLDB J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } SHA-256 H(T1) = 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
  • 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Verifiability in Amazon QLDB J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H(T2) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } SHA-256T1 H(T1) = 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
  • 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Verifiability in Amazon QLDB T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7 J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H(T2) DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H(T3)
  • 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Verifiability in Amazon QLDB H(T3) = J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H(T2) DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H(T3) T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
  • 54. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Verifiability in Amazon QLDB J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H(T2) DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H(T3)
  • 55. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Verifiability in Amazon QLDB J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/01/2013 } H(T2) DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H(T3) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/01/2013 } SHA-256 43108b5499717ed1bba3f5c5e0ddaa4836f57c5658a74dbd0c581c02e513583cT1
  • 56. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Computing SHA-256 https://doi.org/10.6028/NIST.FIPS.180-4
  • 57. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Computing SHA-256 O=> sha256sum INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7 -
  • 58. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Computing SHA-256 https://www.movable-type.co.uk/scripts/sha256.html SHA-256 Cryptographic Hash Algorithm © 2005-2017 Chris Veness INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
  • 59. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Computing SHA-256 http://www.righto.com/2014/09/mining-bitcoin-with-pencil-and-paper.html “Mining Bitcoin with pencil and paper” Ken Shirriff
  • 60. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved More on digests H(T3) = J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Traci Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H(T2) DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H(T3) T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7
  • 61. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved More on digests J INSERT cars ID:1 Manufacturer: Tesla Model: Model S Year: 2012 VIN: 123456789 Owner: Tracy Russell Metadata: { Date:07/16/2012 } H(T1) UPDATE cars ID:1 Owner: Ronnie Nash Metadata: { Date:08/03/2013 } H(T2) DELETE cars ID:1 Metadata: { Date: 09/02/2016 } H(T3) H(T3) = H(T3) = T1 2526f16306c819d651af075934170d2430d246d9ab98d975d28a83baded47ca7 T1 25d0b44e6e8878151646ffc1fea4eb85c3e4bf4baec212a9fcf67b6d5a81e01a
  • 62. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Early database data models
  • 63. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Relational data model Customers ID Name Email Address ID Phone Orders ID Customer ID Date Total Shipping Address ID Status Order Items ID Order ID Item Quantity Price Addresses ID Street City State ZIP
  • 64. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Modern programming languages order = { 'Id': "694262fb-9d43-4f94-8c3b-12ae66ce74f9”, 'Customer': <Customer object at 0x0x7f7e057243a8>, 'Date': 2018-11-23 11:25:36.00, 'Total': 137.53, 'ShippingAddr': { 'Street': "100 Elm St", 'City': "Seattle", 'State': "WA", 'Zip': "98101", }, 'Status': "Processing", 'Items': [ { 'SKU': “70ffb504-af12-4612-8b74-0dac4f8fd534”, 'Quantity': 2, 'Price': 15.21 } . . .
  • 65. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Document data model
  • 66. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Querying Amazon QLDB Traditional SQL QLDB
  • 67. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Querying Amazon QLDB Traditional SQL QLDB
  • 68. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Where should I use Amazon QLDB? Healthcare Maintain accurate records of services, equipment and inventory Manufacturers Track distribution of a recalled product HR & Payroll Track changes to an individual’s profile Government Track vehicle title history Ledgers with centralized control
  • 69. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Sign up for our preview today! https://aws.amazon.com/qldb
  • 70. © 2017, 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