SlideShare une entreprise Scribd logo
1  sur  49
Télécharger pour lire hors ligne
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dickson Yue
Solutions Architect, Amazon Web Services
How Amazon Neptune and Graph
Databases can transform your business
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
purpose
noun ˈpər-pəs
The reason for which something is done or created
or for which something exists
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Traditional application characteristics
HR Payroll
CRM ERP
…
Users 100s-1000s
Data volume GB-TB
Locality HQ
Performance Seconds
Request Rate Tens of thousands
Access Internal servers, PCs
Scale Up
Economics Pay up front
Developer Access days/weeks/months
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cloud application characteristics
Users 1M+
Data volume TB-PB-EB
Locality Global
Performance Milliseconds-Microseconds
Request Rate Millions
Access Mobile, IoT, Devices
Scale Up-Out-In
Economics Pay as you go
Developer access Instant API access
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Databases and Analytics
Broad and deep portfolio, purpose-built for builders
DW | Big Data Processing | Interactive
Business Intelligence & Machine Learning
Data Movement
Database Migration Service | Snowball | Snowmobile | Kinesis Data Firehose | Kinesis Data Streams
QuickSight
Relational Databases
RDS
Aurora
Data Lake
S3/Glacier Glue
(ETL & Data Catalog)
SageMaker
Non-Relational Databases Analytics
DynamoDB
ElastiCache
(Redis, Memcached)
Neptune
(Graph)
Redshift EMR Athena
Kinesis
Analytics
Elasticsearch
Service
Real-time
Comprehend
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database characteristics
Referential integrity
with strong
consistency,
transactions, and
hardened scale
GraphKey-value Document
;
Time SeriesRelational
Low-latency key
based queries with
high throughput
and fast ingestion
of data
Indexing and
storing documents
with support for
query on any
property
Creating and
navigating
relations between
data easily and
quickly
Time-stamped
data with large
range-scans for
summarization
and processing
Complex query
support via SQL
Purchase
Transaction
Simple query
methods with
filters
Shopping cart
Simple query with
filters, projections
and aggregates
Product info
Easily express
queries in terms of
relations
Product
recommendation
Computational
support for
summarized
results
Clickstream
analysis
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DIFFERENT APPROACHES FOR HIGHLY CONNECTED DATA
Purpose-built for a business process
Purpose-built to answer questions about
relationships
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use Cases For Highly Connected Data
Social Networking
Life Sciences Network & IT OperationsFraud Detection
Recommendations Knowledge Graphs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Social Network
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Recommend New Connections
Social Network
gremlin>
g.V().has('name','Terry').as('user’)
.bothE('FRIEND').has('strength', gt(1)).otherV().aggregate('friends’)
.bothE('FRIEND').has('strength', gt(1)).otherV()
.where(neq('user’))
.where(without('friends’))
.groupCount().by('name').order(local).by(values, decr)
==>{Colin=2, Henry=2, Chloe=1}
Terry
Terry’s friend
Terry’s friend’s friend
excl Terry & Terry’s friend
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
t
Recommendation
? ? ? ? ? ? ?
Terry bought t:{…. }
User also who bought t:{…. }
also who bought o:{…….}
t :
o :
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Recommendation
gremlin>
g.V().has("User","name","Terry").as("Terry").
out("Bought").aggregate("self").
in("Bought").where(neq("Terry")).dedup().
group().
by().by(out("Bought").
where(within("self")).count()).as("g").
select(values).
order(local).
by(decr).limit(local, 1).as("m").
select("g").unfold().
where(select(values).as("m")).select(keys).
out("Bought").where(without("self")).
groupCount().
order(local).
by(values, decr).
by(select(keys).values("name")).
unfold().select(keys).values("name")
==>Drone ==>IP camera ==>Kindle ==>Tent
Largest common set of purchase
What they bought
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Recommendation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Knowledge graph applications
What museums should Alice
visit while in Paris?
Who painted the Mona Lisa?
What artists have paintings
in The Louvre?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges of existing graph databases
Difficult to maintain
high availability
Difficult to scale
Limited support for
open standards
Too expensive
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Neptune
Fully managed graph database
FAST RELIABLE OPEN
Query billions of
relationships with
millisecond latency
6 replicas of your data
across 3 AZs with full
backup and restore
Build powerful
queries easily with
Gremlin and SPARQL
Supports Apache
TinkerPop & W3C
RDF graph models
EASY
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Leading graph models and frameworks
Open Source Apache TinkerPop™
Gremlin Traversal Language
W3C Standard
SPARQL Query Language
RESOURCE DESCRIPTION
FRAMEWORK (RDF)
PROPERTY GRAPH
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Neptune High Level Architecture
Bulk load
from S3
Database
Mgmt.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fully managed service
Easily configurable via the Console
Multi-AZ High Availability, ACID
Support for up to 15 read replicas
Supports Encryption at rest
Supports Encryption in transit (TLS)
Backup and Restore, Point-in-time
Recovery
B E N E F I T S
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Neptune Read Replicas
Availability
Failing database nodes are automatically
detected and replaced
Failing database processes are
automatically detected and recycled
Replicas are automatically promoted to
primary if needed (failover)
Customer specifiable fail-over order
AZ 1 AZ 3AZ 2
Primary
Node
Primary
Node
Primary
Master
Node
Primary
Node
Primary
Node
Read
Replica
Primary
Node
Primary
Node
Read
Replica
Cluster
and
Instance
Monitoring
Performance
• Customer applications can scale out read
traffic across read replicas
• Read balancing across read replicas
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Customers previewing Amazon Neptune
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Navigate a web of global tax policies
“Our customers are increasingly required to navigate a complex web of global tax policies and
regulations. We need an approach to model the sophisticated corporate structures of our
largest clients and deliver an end-to-end tax solution. We use a microservices architecture
approach for our platforms and are beginning to leverage Amazon Neptune as a graph-based
system to quickly create links within the data.”
said Tim Vanderham, chief technology officer, Thomson Reuters Tax & Accounting
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DEMO
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
First-Party Fraud
• Fraudsters apply for credit
• No intention of repaying
• Appear normal until they
“burst out”
• Clear out accounts
• Fraud ring
• Share bits of identity (SSN,
address, telephone)
• Coordinated “burst out”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Show me the code!!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fraud ring
gremlin> g.V().
......1> hasLabel('Applicant').
......2> has('first_name','Terry').
......3> has('last_name','Wilder').
......4> out('CREDIT').
......5> out('IDENTITY').
......6> in('IDENTITY').
......7> in('CREDIT').dedup().as('ring').
......8> project('ring', 'identity').
......9> by(select('ring').values().fold()).
.....10> by(select('ring').out('CREDIT').out('IDENTITY').dedup().valueMap().fold())
==>{ring=[Terry, Wilder], {phone_number=[0208 674 5742], type=[Phone Number]}, {type=[Social Security Number], ssn=[224-23-1221]}]}
==>{ring=[Bill, Darrow], {phone_number=[0208 674 5742], type=[Phone Number]}, {type=[Social Security Number], ssn=[555-23-4545]}]}
==>{ring=[Lucy, Phillips], {phone_number=[0208 674 5742], type=[Phone Number]}, {type=[Social Security Number], ssn=[224-23-1221]}]}
==>{ring=[Colin, Smith], {phone_number=[07074 633 7654], type=[Phone Number]}, {type=[Social Security Number], ssn=[224-23-1221]}]}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank You
?univ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Contenu connexe

Tendances

Tendances (20)

Advanced Design Patterns for Amazon DynamoDB - Workshop (DAT404-R1) - AWS re:...
Advanced Design Patterns for Amazon DynamoDB - Workshop (DAT404-R1) - AWS re:...Advanced Design Patterns for Amazon DynamoDB - Workshop (DAT404-R1) - AWS re:...
Advanced Design Patterns for Amazon DynamoDB - Workshop (DAT404-R1) - AWS re:...
 
Introduction to AWS Glue: Data Analytics Week at the SF Loft
Introduction to AWS Glue: Data Analytics Week at the SF LoftIntroduction to AWS Glue: Data Analytics Week at the SF Loft
Introduction to AWS Glue: Data Analytics Week at the SF Loft
 
On-Ramp to Graph Databases and Amazon Neptune (DAT335) - AWS re:Invent 2018
On-Ramp to Graph Databases and Amazon Neptune (DAT335) - AWS re:Invent 2018On-Ramp to Graph Databases and Amazon Neptune (DAT335) - AWS re:Invent 2018
On-Ramp to Graph Databases and Amazon Neptune (DAT335) - AWS re:Invent 2018
 
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineThe Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
 
Effective Data Lakes: Challenges and Design Patterns (ANT316) - AWS re:Invent...
Effective Data Lakes: Challenges and Design Patterns (ANT316) - AWS re:Invent...Effective Data Lakes: Challenges and Design Patterns (ANT316) - AWS re:Invent...
Effective Data Lakes: Challenges and Design Patterns (ANT316) - AWS re:Invent...
 
Amazon DynamoDB Deep Dive Advanced Design Patterns for DynamoDB (DAT401) - AW...
Amazon DynamoDB Deep Dive Advanced Design Patterns for DynamoDB (DAT401) - AW...Amazon DynamoDB Deep Dive Advanced Design Patterns for DynamoDB (DAT401) - AW...
Amazon DynamoDB Deep Dive Advanced Design Patterns for DynamoDB (DAT401) - AW...
 
Amazon QuickSight
Amazon QuickSightAmazon QuickSight
Amazon QuickSight
 
Building a Data Lake on AWS
Building a Data Lake on AWSBuilding a Data Lake on AWS
Building a Data Lake on AWS
 
How Do I Know I Need an Amazon Neptune Graph Database? (DAT316) - AWS re:Inve...
How Do I Know I Need an Amazon Neptune Graph Database? (DAT316) - AWS re:Inve...How Do I Know I Need an Amazon Neptune Graph Database? (DAT316) - AWS re:Inve...
How Do I Know I Need an Amazon Neptune Graph Database? (DAT316) - AWS re:Inve...
 
Building Serverless ETL Pipelines with AWS Glue
Building Serverless ETL Pipelines with AWS GlueBuilding Serverless ETL Pipelines with AWS Glue
Building Serverless ETL Pipelines with AWS Glue
 
ABD315_Serverless ETL with AWS Glue
ABD315_Serverless ETL with AWS GlueABD315_Serverless ETL with AWS Glue
ABD315_Serverless ETL with AWS Glue
 
Introduction to Amazon Aurora
Introduction to Amazon AuroraIntroduction to Amazon Aurora
Introduction to Amazon Aurora
 
Graph Gurus 15: Introducing TigerGraph 2.4
Graph Gurus 15: Introducing TigerGraph 2.4 Graph Gurus 15: Introducing TigerGraph 2.4
Graph Gurus 15: Introducing TigerGraph 2.4
 
Amazon QuickSight
Amazon QuickSightAmazon QuickSight
Amazon QuickSight
 
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
Data Lake Implementation: Processing and Querying Data in Place (STG204-R1) -...
 
Introducing AWS AppSync: serverless data driven apps with real-time and offli...
Introducing AWS AppSync: serverless data driven apps with real-time and offli...Introducing AWS AppSync: serverless data driven apps with real-time and offli...
Introducing AWS AppSync: serverless data driven apps with real-time and offli...
 
Migrating to Amazon Neptune (DAT338) - AWS re:Invent 2018
Migrating to Amazon Neptune (DAT338) - AWS re:Invent 2018Migrating to Amazon Neptune (DAT338) - AWS re:Invent 2018
Migrating to Amazon Neptune (DAT338) - AWS re:Invent 2018
 
re:Invent 2022 DAT326 Deep dive into Amazon Aurora and its innovations
re:Invent 2022  DAT326 Deep dive into Amazon Aurora and its innovationsre:Invent 2022  DAT326 Deep dive into Amazon Aurora and its innovations
re:Invent 2022 DAT326 Deep dive into Amazon Aurora and its innovations
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Building a Data Lake on AWS
Building a Data Lake on AWSBuilding a Data Lake on AWS
Building a Data Lake on AWS
 

Similaire à AWS Neptune - A Fast and reliable Graph Database Built for the Cloud

Similaire à AWS Neptune - A Fast and reliable Graph Database Built for the Cloud (20)

Optimize Your SaaS Offering with Serverless Microservices (GPSTEC405) - AWS r...
Optimize Your SaaS Offering with Serverless Microservices (GPSTEC405) - AWS r...Optimize Your SaaS Offering with Serverless Microservices (GPSTEC405) - AWS r...
Optimize Your SaaS Offering with Serverless Microservices (GPSTEC405) - AWS r...
 
AppSync in real world - pitfalls, unexpected benefits & lessons learnt
AppSync in real world - pitfalls, unexpected benefits & lessons learntAppSync in real world - pitfalls, unexpected benefits & lessons learnt
AppSync in real world - pitfalls, unexpected benefits & lessons learnt
 
AI/Big Data/Cloud Patterns for Fraud Prevention
AI/Big Data/Cloud Patterns for Fraud PreventionAI/Big Data/Cloud Patterns for Fraud Prevention
AI/Big Data/Cloud Patterns for Fraud Prevention
 
Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...
Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...
Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...
 
Nonrelational Revolution
Nonrelational RevolutionNonrelational Revolution
Nonrelational Revolution
 
Executing a Large Scale Migration to AWS (ENT337-R2) - AWS re:Invent 2018
Executing a Large Scale Migration to AWS (ENT337-R2) - AWS re:Invent 2018Executing a Large Scale Migration to AWS (ENT337-R2) - AWS re:Invent 2018
Executing a Large Scale Migration to AWS (ENT337-R2) - AWS re:Invent 2018
 
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
 
Supercharge GuardDuty with Partners: Threat Detection and Response at Scale (...
Supercharge GuardDuty with Partners: Threat Detection and Response at Scale (...Supercharge GuardDuty with Partners: Threat Detection and Response at Scale (...
Supercharge GuardDuty with Partners: Threat Detection and Response at Scale (...
 
Keynote - Adrian Hornsby on Chaos Engineering
Keynote - Adrian Hornsby on Chaos EngineeringKeynote - Adrian Hornsby on Chaos Engineering
Keynote - Adrian Hornsby on Chaos Engineering
 
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
 
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
 
Supercell – Scaling Mobile Games (GAM301) - AWS re:Invent 2018
Supercell – Scaling Mobile Games (GAM301) - AWS re:Invent 2018Supercell – Scaling Mobile Games (GAM301) - AWS re:Invent 2018
Supercell – Scaling Mobile Games (GAM301) - AWS re:Invent 2018
 
Real-Time Personalized Customer Experiences at Bonobos (RET203) - AWS re:Inve...
Real-Time Personalized Customer Experiences at Bonobos (RET203) - AWS re:Inve...Real-Time Personalized Customer Experiences at Bonobos (RET203) - AWS re:Inve...
Real-Time Personalized Customer Experiences at Bonobos (RET203) - AWS re:Inve...
 
AWS 金融服務概覽與區塊鍊案例分享
AWS 金融服務概覽與區塊鍊案例分享AWS 金融服務概覽與區塊鍊案例分享
AWS 金融服務概覽與區塊鍊案例分享
 
Connecting the dots - How Amazon Neptune and Graph Databases can transform yo...
Connecting the dots - How Amazon Neptune and Graph Databases can transform yo...Connecting the dots - How Amazon Neptune and Graph Databases can transform yo...
Connecting the dots - How Amazon Neptune and Graph Databases can transform yo...
 
Architecting for Real-Time Insights with Amazon Kinesis (ANT310) - AWS re:Inv...
Architecting for Real-Time Insights with Amazon Kinesis (ANT310) - AWS re:Inv...Architecting for Real-Time Insights with Amazon Kinesis (ANT310) - AWS re:Inv...
Architecting for Real-Time Insights with Amazon Kinesis (ANT310) - AWS re:Inv...
 
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
 
Build, Deploy, and Serve Machine Learning Models on Streaming Data (ANT345-R1...
Build, Deploy, and Serve Machine Learning Models on Streaming Data (ANT345-R1...Build, Deploy, and Serve Machine Learning Models on Streaming Data (ANT345-R1...
Build, Deploy, and Serve Machine Learning Models on Streaming Data (ANT345-R1...
 
Build a Searchable Media Library & Moderate Content at Scale Using Machine Le...
Build a Searchable Media Library & Moderate Content at Scale Using Machine Le...Build a Searchable Media Library & Moderate Content at Scale Using Machine Le...
Build a Searchable Media Library & Moderate Content at Scale Using Machine Le...
 
The Theory and Math Behind Data Privacy and Security Assurance (SEC301) - AWS...
The Theory and Math Behind Data Privacy and Security Assurance (SEC301) - AWS...The Theory and Math Behind Data Privacy and Security Assurance (SEC301) - AWS...
The Theory and Math Behind Data Privacy and Security Assurance (SEC301) - AWS...
 

Plus de Amazon 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

Plus 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
 

AWS Neptune - A Fast and reliable Graph Database Built for the Cloud

  • 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dickson Yue Solutions Architect, Amazon Web Services How Amazon Neptune and Graph Databases can transform your business
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. purpose noun ˈpər-pəs The reason for which something is done or created or for which something exists
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Traditional application characteristics HR Payroll CRM ERP … Users 100s-1000s Data volume GB-TB Locality HQ Performance Seconds Request Rate Tens of thousands Access Internal servers, PCs Scale Up Economics Pay up front Developer Access days/weeks/months
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cloud application characteristics Users 1M+ Data volume TB-PB-EB Locality Global Performance Milliseconds-Microseconds Request Rate Millions Access Mobile, IoT, Devices Scale Up-Out-In Economics Pay as you go Developer access Instant API access
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Databases and Analytics Broad and deep portfolio, purpose-built for builders DW | Big Data Processing | Interactive Business Intelligence & Machine Learning Data Movement Database Migration Service | Snowball | Snowmobile | Kinesis Data Firehose | Kinesis Data Streams QuickSight Relational Databases RDS Aurora Data Lake S3/Glacier Glue (ETL & Data Catalog) SageMaker Non-Relational Databases Analytics DynamoDB ElastiCache (Redis, Memcached) Neptune (Graph) Redshift EMR Athena Kinesis Analytics Elasticsearch Service Real-time Comprehend
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Database characteristics Referential integrity with strong consistency, transactions, and hardened scale GraphKey-value Document ; Time SeriesRelational Low-latency key based queries with high throughput and fast ingestion of data Indexing and storing documents with support for query on any property Creating and navigating relations between data easily and quickly Time-stamped data with large range-scans for summarization and processing Complex query support via SQL Purchase Transaction Simple query methods with filters Shopping cart Simple query with filters, projections and aggregates Product info Easily express queries in terms of relations Product recommendation Computational support for summarized results Clickstream analysis
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DIFFERENT APPROACHES FOR HIGHLY CONNECTED DATA Purpose-built for a business process Purpose-built to answer questions about relationships
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use Cases For Highly Connected Data Social Networking Life Sciences Network & IT OperationsFraud Detection Recommendations Knowledge Graphs
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Social Network
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Recommend New Connections Social Network gremlin> g.V().has('name','Terry').as('user’) .bothE('FRIEND').has('strength', gt(1)).otherV().aggregate('friends’) .bothE('FRIEND').has('strength', gt(1)).otherV() .where(neq('user’)) .where(without('friends’)) .groupCount().by('name').order(local).by(values, decr) ==>{Colin=2, Henry=2, Chloe=1} Terry Terry’s friend Terry’s friend’s friend excl Terry & Terry’s friend
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. t Recommendation ? ? ? ? ? ? ? Terry bought t:{…. } User also who bought t:{…. } also who bought o:{…….} t : o :
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Recommendation gremlin> g.V().has("User","name","Terry").as("Terry"). out("Bought").aggregate("self"). in("Bought").where(neq("Terry")).dedup(). group(). by().by(out("Bought"). where(within("self")).count()).as("g"). select(values). order(local). by(decr).limit(local, 1).as("m"). select("g").unfold(). where(select(values).as("m")).select(keys). out("Bought").where(without("self")). groupCount(). order(local). by(values, decr). by(select(keys).values("name")). unfold().select(keys).values("name") ==>Drone ==>IP camera ==>Kindle ==>Tent Largest common set of purchase What they bought
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Recommendation
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Knowledge graph applications What museums should Alice visit while in Paris? Who painted the Mona Lisa? What artists have paintings in The Louvre?
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Challenges of existing graph databases Difficult to maintain high availability Difficult to scale Limited support for open standards Too expensive
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Neptune Fully managed graph database FAST RELIABLE OPEN Query billions of relationships with millisecond latency 6 replicas of your data across 3 AZs with full backup and restore Build powerful queries easily with Gremlin and SPARQL Supports Apache TinkerPop & W3C RDF graph models EASY
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Leading graph models and frameworks Open Source Apache TinkerPop™ Gremlin Traversal Language W3C Standard SPARQL Query Language RESOURCE DESCRIPTION FRAMEWORK (RDF) PROPERTY GRAPH
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Neptune High Level Architecture Bulk load from S3 Database Mgmt.
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fully managed service Easily configurable via the Console Multi-AZ High Availability, ACID Support for up to 15 read replicas Supports Encryption at rest Supports Encryption in transit (TLS) Backup and Restore, Point-in-time Recovery B E N E F I T S
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Neptune Read Replicas Availability Failing database nodes are automatically detected and replaced Failing database processes are automatically detected and recycled Replicas are automatically promoted to primary if needed (failover) Customer specifiable fail-over order AZ 1 AZ 3AZ 2 Primary Node Primary Node Primary Master Node Primary Node Primary Node Read Replica Primary Node Primary Node Read Replica Cluster and Instance Monitoring Performance • Customer applications can scale out read traffic across read replicas • Read balancing across read replicas
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Customers previewing Amazon Neptune
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Navigate a web of global tax policies “Our customers are increasingly required to navigate a complex web of global tax policies and regulations. We need an approach to model the sophisticated corporate structures of our largest clients and deliver an end-to-end tax solution. We use a microservices architecture approach for our platforms and are beginning to leverage Amazon Neptune as a graph-based system to quickly create links within the data.” said Tim Vanderham, chief technology officer, Thomson Reuters Tax & Accounting
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DEMO
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. First-Party Fraud • Fraudsters apply for credit • No intention of repaying • Appear normal until they “burst out” • Clear out accounts • Fraud ring • Share bits of identity (SSN, address, telephone) • Coordinated “burst out”
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Show me the code!!
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fraud ring gremlin> g.V(). ......1> hasLabel('Applicant'). ......2> has('first_name','Terry'). ......3> has('last_name','Wilder'). ......4> out('CREDIT'). ......5> out('IDENTITY'). ......6> in('IDENTITY'). ......7> in('CREDIT').dedup().as('ring'). ......8> project('ring', 'identity'). ......9> by(select('ring').values().fold()). .....10> by(select('ring').out('CREDIT').out('IDENTITY').dedup().valueMap().fold()) ==>{ring=[Terry, Wilder], {phone_number=[0208 674 5742], type=[Phone Number]}, {type=[Social Security Number], ssn=[224-23-1221]}]} ==>{ring=[Bill, Darrow], {phone_number=[0208 674 5742], type=[Phone Number]}, {type=[Social Security Number], ssn=[555-23-4545]}]} ==>{ring=[Lucy, Phillips], {phone_number=[0208 674 5742], type=[Phone Number]}, {type=[Social Security Number], ssn=[224-23-1221]}]} ==>{ring=[Colin, Smith], {phone_number=[07074 633 7654], type=[Phone Number]}, {type=[Social Security Number], ssn=[224-23-1221]}]}
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thank You ?univ
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.