SlideShare une entreprise Scribd logo
1  sur  36
Télécharger pour lire hors ligne
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Migrating Your NoSQL Database to
Amazon DynamoDB
Arun Thiagarajan
Product Manager
AWS Database Migration Service/Schema Conversion Tool
D A T 3 1 4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
A quick overview of Amazon DynamoDB
Why you should migrate from self-managed NoSQL databases
An overview of AWS Database Migration Tool (AWS DMS) and AWS
Schema Conversion Tool (AWS SCT)
How to migrate from MongoDB and Cassandra to Amazon DynamoDB
Demo
Q&A
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon DynamoDB
Fully managed nonrelational database for any scale
High performance
• Fast, consistent
performance
• Virtually unlimited
throughput
• Virtually unlimited
storage
Enterprise ready
• Encryption at rest and
transit
• Fine-grained access
control
• PCI, HIPAA, FIPS 140-2
eligible
Fully managed
• Maintenance-free
• Serverless
• Auto scaling
• Backup and
restore
• Global tables
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fully managed
Maintenance-free
Security
• Operating-system patching
• Database patching
• Access control
• Audit
• Encryption
• Compliance
Durability
• Sustain server, rack, and data
center outages
• Re-replicate data quickly upon
hardware failure
• Manage backup and restore
Availability
• High-availability configuration
• Monitoring
• Cross-region replication
Performance
• Performance tuning
• Indexing
• In-memory caching
Scalability
• Capacity planning
• Host provisioning
• Host repair and retirement
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why should you migrate from self managed NoSQL
databases?
With MongoDB/Cassandra, you deal with:
• Outages (infrastructure failures, buggy patches) → Lost revenue
• Lesser performance → Unpredictable user experience
• Extra effort to scale, upgrade, and maintain → Lost time and resources
• Required, specialized training → Less time to develop features that matter
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What are AWS DMS and AWS SCT?
AWS Schema Conversion Tool converts your commercial
database and data warehouse schemas to open-source
engines or AWS-native services, such as Amazon Aurora
and Redshift
AWS Database Migration Service easily and securely
migrates and/or replicate your databases and data
warehouses to AWS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
>100,000 databases migrated with DMS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Schema Conversion Tool
• Migrate your data
Migrate your Cassandra database using SCT
Data Extractors
Modernize
• Modernize your database schema
Convert your Cassandra database to Amazon
DynamoDB
Amazon DynamoDB
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS SCT product highlights
Assess Plan Convert schema
and code
Optimize Migrate
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Database Migration Service
Migrate
• Migrate business-critical applications
• Migrate data warehouse to Redshift
• Upgrade to a minor version
• Consolidate shards into Aurora
• Archive old data
• Migrate from NoSQL to SQL, SQL to
NoSQL, or NoSQL to NoSQL
Amazon RDS
Amazon
Redshift
Amazon
Aurora
Amazon
DynamoDB
Amazon S3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Database Migration Service
Replicate
• Create cross-region Read Replicas
• Run your analytics in the cloud
• Populate your data lake
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS—Endpoint support expansion
Amazon
Redshift
Amazon
DynamoDB
Amazon S3
Amazon S3
Amazon
Aurora
Amazon
Aurora
Oracle SQL Server Netezza
Greenplum Vertica Teradata
AWS Snowball
Edge
MongoDB Cassandra
Amazon
Elasticsearch
Amazon Kinesis
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS product highlights
Verify Validate Ship with
Snowball
Secure
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Customer premises AWS
Internet
VPN
Migrating DB using AWS Snowball
AWS DMS
Local replication
agent
(through AWS SCT)
AWS Snowball
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Core Components
MongoDB Amazon DynamoDB
Collection Table
Document Item
Field Attribute
Secondary Index Secondary Index
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Migration Approaches
Document mode: In this mode, AWS DMS migrates all the JSON data into
a single column named “_doc” in the target DynamoDB table.
Table mode: In this mode, AWS DMS scans a specified number of
documents in the MongoDB database and creates a sample schema with
all the keys and their types. During migration, you can use the object
mapping feature in AWS DMS to transform the original data from
MongoDB to the desired structure in DynamoDB.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Object Mapping Example
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MongoDB to Amazon DynamoDB Migration
MongoDB
Shard
MongoDB
Shard
MongoDB
Shard
Amazon DynamoDB
Reference: https://aws.amazon.com/blogs/database/performing-a-live-
migration-from-a-mongodb-cluster-to-amazon-dynamodb/
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cassandra to Amazon DynamoDB Migration
Migrate data from Apache Cassandra and migrate to Amazon DynamoDB
• Extracts data through local migration agents
• Data is optimized for DynamoDB and saved in local files
• Files are loaded to an Amazon S3 bucket (through network or Amazon
Snowball) and then to Amazon DynamoDB
AWS SCT S3 Bucket Amazon DynamoDB
AWS DMS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cassandra to DynamoDB migration—Step 1
Clone your Cassandra data center:
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cassandra to DynamoDB migration—Step 2
AWS SCTApache Cassandra
Convert your schema from Cassandra to DynamoDB
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cassandra to DynamoDB migration—Step 3
Apache Cassandra AWS SCT
Migrate your data from Cassandra to DynamoDB
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cassandra to DynamoDB migration
Step 1
Step 2
Step 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Learn more about DynamoDB in the below sessions
DAT201 – A Deep Dive into What’s New for Amazon DynamoDB
DAT303 – Protecting Your Greatest Asset (Your Data): Security Best Practices on DynamoDB
DAT311– Building Serverless Applications with Amazon DynamoDB & AWS Lambda – Workshop
DAT314 – Migrating Your NoSQL Database to Amazon DynamoDB
DAT320 – Becoming a Nimble Giant: How Amazon DynamoDB Serves Nike at Scale
DAT321 – Amazon DynamoDB Under the Hood: How We Built the Hyper-Scale Database of the Future
DAT325 – How Oath (a Verizon Company) Built a Multi-Region GDPR Application with Amazon DynamoDB
DAT332 – Why GE Aviation Migrated from Cassandra to Amazon DynamoDB
DAT333 – Real-World Use Cases for Amazon DynamoDB
DAT341 – Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB
DAT342 – Implementing Microservice Architectures with Amazon DynamoDB and AWS Lambda
DAT345 – How GumGum Migrated from Cassandra to Amazon DynamoDB
DAT347 – How Amazon Migrated Items and Offers for Retail, Marketplace, and Digital to DynamoDB
DAT349 – Deep Dive on Amazon DynamoDB Global Tables
DAT352 – Migrate Your Nonrelational Database to AWS
DAT357 – Build Internet-Scale Apps with Amazon DynamoDB
DAT365 – Separating Fact from Fiction: Amazon DynamoDB Scaling and Adaptive Capacity
DAT401 – Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB
DAT404 – Advanced Design Patterns for Amazon DynamoDB – Workshop
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
But wait, there’s more about DynamoDB
• A list of all DynamoDB sessions, workshops, and chalk talks
• Migrating Apache Cassandra databases to DynamoDB
• What’s new with DynamoDB
• Purpose-built databases in AWS
• DynamoDB service level agreement
• Adaptive capacity
• Point-in-time recovery (PITR)
• Global tables
Follow @dynamodb to get the latest
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Arun Thiagarajan
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Contenu connexe

Tendances

Databases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWSDatabases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWS
Amazon Web Services
 
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
Simplilearn
 

Tendances (20)

Introduction to Amazon Elasticsearch Service
Introduction to  Amazon Elasticsearch ServiceIntroduction to  Amazon Elasticsearch Service
Introduction to Amazon Elasticsearch Service
 
Introduction of AWS KMS
Introduction of AWS KMSIntroduction of AWS KMS
Introduction of AWS KMS
 
[Keynote] Data Driven Organizations with AWS Data - 발표자: Agnes Panosian, Head...
[Keynote] Data Driven Organizations with AWS Data - 발표자: Agnes Panosian, Head...[Keynote] Data Driven Organizations with AWS Data - 발표자: Agnes Panosian, Head...
[Keynote] Data Driven Organizations with AWS Data - 발표자: Agnes Panosian, Head...
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control Tower
 
Databases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWSDatabases - Choosing the right Database on AWS
Databases - Choosing the right Database on AWS
 
AWS for Backup and Recovery
AWS for Backup and RecoveryAWS for Backup and Recovery
AWS for Backup and Recovery
 
Identity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS SecurityIdentity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS Security
 
DMS와 SCT를 활용한 Oracle에서 Open Source DB로의 전환
DMS와 SCT를 활용한 Oracle에서 Open Source DB로의 전환DMS와 SCT를 활용한 Oracle에서 Open Source DB로의 전환
DMS와 SCT를 활용한 Oracle에서 Open Source DB로의 전환
 
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
Module 2: Core AWS Compute and Storage Services - Virtual AWSome Day June 2018
 
Fundamentals of AWS Security
Fundamentals of AWS SecurityFundamentals of AWS Security
Fundamentals of AWS Security
 
AWS Cost Optimisation Solutions
AWS Cost Optimisation SolutionsAWS Cost Optimisation Solutions
AWS Cost Optimisation Solutions
 
Amazon SageMaker 모델 학습 방법 소개::최영준, 솔루션즈 아키텍트 AI/ML 엑스퍼트, AWS::AWS AIML 스페셜 웨비나
Amazon SageMaker 모델 학습 방법 소개::최영준, 솔루션즈 아키텍트 AI/ML 엑스퍼트, AWS::AWS AIML 스페셜 웨비나Amazon SageMaker 모델 학습 방법 소개::최영준, 솔루션즈 아키텍트 AI/ML 엑스퍼트, AWS::AWS AIML 스페셜 웨비나
Amazon SageMaker 모델 학습 방법 소개::최영준, 솔루션즈 아키텍트 AI/ML 엑스퍼트, AWS::AWS AIML 스페셜 웨비나
 
Building a Modern Data Architecture on AWS - Webinar
Building a Modern Data Architecture on AWS - WebinarBuilding a Modern Data Architecture on AWS - Webinar
Building a Modern Data Architecture on AWS - Webinar
 
Architecting security and governance across your AWS environment
Architecting security and governance across your AWS environmentArchitecting security and governance across your AWS environment
Architecting security and governance across your AWS environment
 
(BDT208) A Technical Introduction to Amazon Elastic MapReduce
(BDT208) A Technical Introduction to Amazon Elastic MapReduce(BDT208) A Technical Introduction to Amazon Elastic MapReduce
(BDT208) A Technical Introduction to Amazon Elastic MapReduce
 
AWS Tagging Strategy
AWS Tagging StrategyAWS Tagging Strategy
AWS Tagging Strategy
 
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 
AWS Well-Architected Framework
AWS Well-Architected FrameworkAWS Well-Architected Framework
AWS Well-Architected Framework
 

Similaire à Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018

Similaire à Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018 (20)

Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB (DA...
 
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...
 
Migrating Your Databases to AWS - Deep Dive on Amazon RDS and AWS Database Mi...
Migrating Your Databases to AWS - Deep Dive on Amazon RDS and AWS Database Mi...Migrating Your Databases to AWS - Deep Dive on Amazon RDS and AWS Database Mi...
Migrating Your Databases to AWS - Deep Dive on Amazon RDS and AWS Database Mi...
 
How Amazon Migrated Items & Offers for Retail, Marketplace, & Digital to Dyna...
How Amazon Migrated Items & Offers for Retail, Marketplace, & Digital to Dyna...How Amazon Migrated Items & Offers for Retail, Marketplace, & Digital to Dyna...
How Amazon Migrated Items & Offers for Retail, Marketplace, & Digital to Dyna...
 
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Atlanta ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Atlanta ...Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Atlanta ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Atlanta ...
 
What's New with Amazon DynamoDB
What's New with Amazon DynamoDBWhat's New with Amazon DynamoDB
What's New with Amazon DynamoDB
 
Best Practices for Migrating Oracle Databases to the Cloud - AWS Online Tech ...
Best Practices for Migrating Oracle Databases to the Cloud - AWS Online Tech ...Best Practices for Migrating Oracle Databases to the Cloud - AWS Online Tech ...
Best Practices for Migrating Oracle Databases to the Cloud - AWS Online Tech ...
 
Migrate a relational database to Aurora - ADB302 - Atlanta AWS Summit
Migrate a relational database to Aurora - ADB302 - Atlanta AWS SummitMigrate a relational database to Aurora - ADB302 - Atlanta AWS Summit
Migrate a relational database to Aurora - ADB302 - Atlanta AWS Summit
 
Migrare a AWS per ridurre il debito tecnico e focalizzarsi sull'innovazione
Migrare a AWS per ridurre il debito tecnico e focalizzarsi sull'innovazioneMigrare a AWS per ridurre il debito tecnico e focalizzarsi sull'innovazione
Migrare a AWS per ridurre il debito tecnico e focalizzarsi sull'innovazione
 
Database Freedom - ADB304 - Santa Clara AWS Summit
Database Freedom - ADB304 - Santa Clara AWS SummitDatabase Freedom - ADB304 - Santa Clara AWS Summit
Database Freedom - ADB304 - Santa Clara AWS Summit
 
Data Warehouses and Data Lakes
Data Warehouses and Data LakesData Warehouses and Data Lakes
Data Warehouses and Data Lakes
 
Running Oracle Databases on Amazon RDS and Migrating to PostgreSQL (DAT307-R1...
Running Oracle Databases on Amazon RDS and Migrating to PostgreSQL (DAT307-R1...Running Oracle Databases on Amazon RDS and Migrating to PostgreSQL (DAT307-R1...
Running Oracle Databases on Amazon RDS and Migrating to PostgreSQL (DAT307-R1...
 
SRV422 Deep Dive on AWS Database Migration Service
SRV422 Deep Dive on AWS Database Migration ServiceSRV422 Deep Dive on AWS Database Migration Service
SRV422 Deep Dive on AWS Database Migration Service
 
Oracle Enterprise Solutions on AWS (GPSCT203) - AWS re:Invent 2018
Oracle Enterprise Solutions on AWS (GPSCT203) - AWS re:Invent 2018Oracle Enterprise Solutions on AWS (GPSCT203) - AWS re:Invent 2018
Oracle Enterprise Solutions on AWS (GPSCT203) - AWS re:Invent 2018
 
Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...
Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...
Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...
 
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Toronto ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Toronto ...Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Toronto ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Toronto ...
 
Designing a Migration Strategy for Your SQL Server Infrastructure (WIN322) - ...
Designing a Migration Strategy for Your SQL Server Infrastructure (WIN322) - ...Designing a Migration Strategy for Your SQL Server Infrastructure (WIN322) - ...
Designing a Migration Strategy for Your SQL Server Infrastructure (WIN322) - ...
 
Database Freedom. Database migration approaches to get to the Cloud - Marcus ...
Database Freedom. Database migration approaches to get to the Cloud - Marcus ...Database Freedom. Database migration approaches to get to the Cloud - Marcus ...
Database Freedom. Database migration approaches to get to the Cloud - Marcus ...
 
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
How UCSD Simplified Data Protection with Rubrik and AWS (STG207-S) - AWS re:I...
 
reModernize - Updating & Consolidating MySQL
reModernize - Updating & Consolidating MySQLreModernize - Updating & Consolidating MySQL
reModernize - Updating & Consolidating MySQL
 

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
 

Migrating Your NoSQL Database to Amazon DynamoDB (DAT314) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Migrating Your NoSQL Database to Amazon DynamoDB Arun Thiagarajan Product Manager AWS Database Migration Service/Schema Conversion Tool D A T 3 1 4
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda A quick overview of Amazon DynamoDB Why you should migrate from self-managed NoSQL databases An overview of AWS Database Migration Tool (AWS DMS) and AWS Schema Conversion Tool (AWS SCT) How to migrate from MongoDB and Cassandra to Amazon DynamoDB Demo Q&A
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon DynamoDB Fully managed nonrelational database for any scale High performance • Fast, consistent performance • Virtually unlimited throughput • Virtually unlimited storage Enterprise ready • Encryption at rest and transit • Fine-grained access control • PCI, HIPAA, FIPS 140-2 eligible Fully managed • Maintenance-free • Serverless • Auto scaling • Backup and restore • Global tables
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fully managed Maintenance-free Security • Operating-system patching • Database patching • Access control • Audit • Encryption • Compliance Durability • Sustain server, rack, and data center outages • Re-replicate data quickly upon hardware failure • Manage backup and restore Availability • High-availability configuration • Monitoring • Cross-region replication Performance • Performance tuning • Indexing • In-memory caching Scalability • Capacity planning • Host provisioning • Host repair and retirement
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why should you migrate from self managed NoSQL databases? With MongoDB/Cassandra, you deal with: • Outages (infrastructure failures, buggy patches) → Lost revenue • Lesser performance → Unpredictable user experience • Extra effort to scale, upgrade, and maintain → Lost time and resources • Required, specialized training → Less time to develop features that matter
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What are AWS DMS and AWS SCT? AWS Schema Conversion Tool converts your commercial database and data warehouse schemas to open-source engines or AWS-native services, such as Amazon Aurora and Redshift AWS Database Migration Service easily and securely migrates and/or replicate your databases and data warehouses to AWS
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. >100,000 databases migrated with DMS
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Schema Conversion Tool • Migrate your data Migrate your Cassandra database using SCT Data Extractors Modernize • Modernize your database schema Convert your Cassandra database to Amazon DynamoDB Amazon DynamoDB
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS SCT product highlights Assess Plan Convert schema and code Optimize Migrate
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Database Migration Service Migrate • Migrate business-critical applications • Migrate data warehouse to Redshift • Upgrade to a minor version • Consolidate shards into Aurora • Archive old data • Migrate from NoSQL to SQL, SQL to NoSQL, or NoSQL to NoSQL Amazon RDS Amazon Redshift Amazon Aurora Amazon DynamoDB Amazon S3
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Database Migration Service Replicate • Create cross-region Read Replicas • Run your analytics in the cloud • Populate your data lake
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS DMS—Endpoint support expansion Amazon Redshift Amazon DynamoDB Amazon S3 Amazon S3 Amazon Aurora Amazon Aurora Oracle SQL Server Netezza Greenplum Vertica Teradata AWS Snowball Edge MongoDB Cassandra Amazon Elasticsearch Amazon Kinesis
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS DMS product highlights Verify Validate Ship with Snowball Secure
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Customer premises AWS Internet VPN Migrating DB using AWS Snowball AWS DMS Local replication agent (through AWS SCT) AWS Snowball
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Core Components MongoDB Amazon DynamoDB Collection Table Document Item Field Attribute Secondary Index Secondary Index
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Migration Approaches Document mode: In this mode, AWS DMS migrates all the JSON data into a single column named “_doc” in the target DynamoDB table. Table mode: In this mode, AWS DMS scans a specified number of documents in the MongoDB database and creates a sample schema with all the keys and their types. During migration, you can use the object mapping feature in AWS DMS to transform the original data from MongoDB to the desired structure in DynamoDB.
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Object Mapping Example
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. MongoDB to Amazon DynamoDB Migration MongoDB Shard MongoDB Shard MongoDB Shard Amazon DynamoDB Reference: https://aws.amazon.com/blogs/database/performing-a-live- migration-from-a-mongodb-cluster-to-amazon-dynamodb/
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cassandra to Amazon DynamoDB Migration Migrate data from Apache Cassandra and migrate to Amazon DynamoDB • Extracts data through local migration agents • Data is optimized for DynamoDB and saved in local files • Files are loaded to an Amazon S3 bucket (through network or Amazon Snowball) and then to Amazon DynamoDB AWS SCT S3 Bucket Amazon DynamoDB AWS DMS
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cassandra to DynamoDB migration—Step 1 Clone your Cassandra data center:
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cassandra to DynamoDB migration—Step 2 AWS SCTApache Cassandra Convert your schema from Cassandra to DynamoDB
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cassandra to DynamoDB migration—Step 3 Apache Cassandra AWS SCT Migrate your data from Cassandra to DynamoDB
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cassandra to DynamoDB migration Step 1 Step 2 Step 3
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 31.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Learn more about DynamoDB in the below sessions DAT201 – A Deep Dive into What’s New for Amazon DynamoDB DAT303 – Protecting Your Greatest Asset (Your Data): Security Best Practices on DynamoDB DAT311– Building Serverless Applications with Amazon DynamoDB & AWS Lambda – Workshop DAT314 – Migrating Your NoSQL Database to Amazon DynamoDB DAT320 – Becoming a Nimble Giant: How Amazon DynamoDB Serves Nike at Scale DAT321 – Amazon DynamoDB Under the Hood: How We Built the Hyper-Scale Database of the Future DAT325 – How Oath (a Verizon Company) Built a Multi-Region GDPR Application with Amazon DynamoDB DAT332 – Why GE Aviation Migrated from Cassandra to Amazon DynamoDB DAT333 – Real-World Use Cases for Amazon DynamoDB DAT341 – Migrating Financial and Accounting Systems from Oracle to Amazon DynamoDB DAT342 – Implementing Microservice Architectures with Amazon DynamoDB and AWS Lambda DAT345 – How GumGum Migrated from Cassandra to Amazon DynamoDB DAT347 – How Amazon Migrated Items and Offers for Retail, Marketplace, and Digital to DynamoDB DAT349 – Deep Dive on Amazon DynamoDB Global Tables DAT352 – Migrate Your Nonrelational Database to AWS DAT357 – Build Internet-Scale Apps with Amazon DynamoDB DAT365 – Separating Fact from Fiction: Amazon DynamoDB Scaling and Adaptive Capacity DAT401 – Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB DAT404 – Advanced Design Patterns for Amazon DynamoDB – Workshop
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. But wait, there’s more about DynamoDB • A list of all DynamoDB sessions, workshops, and chalk talks • Migrating Apache Cassandra databases to DynamoDB • What’s new with DynamoDB • Purpose-built databases in AWS • DynamoDB service level agreement • Adaptive capacity • Point-in-time recovery (PITR) • Global tables
  • 34. Follow @dynamodb to get the latest
  • 35. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Arun Thiagarajan
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.