Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

What's New with Amazon DynamoDB - AWS Online Tech Talks

603 visualizaciones

Publicado el

Learning Objectives: - Get an overview of Amazon DynamoDB improvements in 2017
- Learn about the new features of Amazon DynamoDB, including Time-to-live (TTL), Tagging, VPC-Endpoints, DynamoDB Accelerator (DAX), Database Migration Service (DMS) support, and more.
- Learn about the benefits these new features deliver to you

  • Sé el primero en comentar

  • Sé el primero en recomendar esto

What's New with Amazon DynamoDB - AWS Online Tech Talks

  1. 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Edin Zulich - NoSQL Solutions Architect, AWS September, 2017 What’s New with Amazon DynamoDB
  2. 2. Agenda • Quick overview of Amazon DynamoDB • Cost Allocation Tagging • Time-to-live (TTL) • Auto Scaling • DynamoDB Accelerator (DAX) • VPC Endpoints • AWS Data Migration Service (DMS) DynamoDB target
  3. 3. DynamoDB: a fully managed NoSQL database 0000 {“Texas”} 0001 {“Illinois”} 0002 {“Oregon”} Key Column Key Value Document Amazon’s Highly Available Key-value Store January 2012Fall 2007 Late 2007 Amazon SimpleDB Amazon DynamoDBDynamo
  4. 4. Fully Managed Fast, Consistent Performance Highly Scalable, Available, Durable Flexible Cost-effective Secure Amazon DynamoDB
  5. 5. Cost allocation tagging • Track costs: AWS bills broken down by tags in detailed monthly bills and Cost Explorer • Flexible: Add customizable tags to tables, indexes and DAX clusters Features Key Benefits • Transparency: know exactly how much your DynamoDB resources cost • Consistent: report of spend across AWS services
  6. 6. • Indexes are tagged automatically as their parent tables • Currently DynamoDB Streams cannot be tagged • Max number of tags per resource: 50 • Tag keys and values are case-sensitive • A resource cannot be tagged at the creation time • Tagging is a separate action Tagging: things to know
  7. 7. Time-to-Live (TTL) ID Name Size Expiry 1234 A 100 1456702305 2222 B 240 1456702400 3423 C 150 1459207905 TTL Value (Epoch format) TTL Attribute • Automatic: Deletes items from a table based on expiration timestamp • Customizable: User-defined TTL attribute in epoch time format • Audit Log: TTL activity recorded in DynamoDB Streams Features • Reduce costs: Delete items no longer needed, without consuming WCU’s • Performance: Optimize application performance by controlling table size growth • Extensible: Trigger custom workflows with DynamoDB Streams and Lambda Key Benefits
  8. 8. Using TTL to age out cold data RCUs = 10000 WCUs = 10000 HotdataColddata Use DynamoDB TTL and Streams to archive Events_table Event_id (Partition key) Timestamp (sort key) myTTL 1489188093 …. Attribute NDynamoDB table S3 AWS Lambda
  9. 9. • Expired items are deleted within 48 hrs of expiration • Items with an expiration time greater than 5 years in the past are not deleted. • Access to TTL can be controled using IAM policies • dynamoDB:UpdateTimeToLive • Designated TTL attribute has to be Number type and in epoch format • “Preview TTL” can be used to sample items designated for expiry TTL: things to know
  10. 10. Auto Scaling With Auto Scaling Without Auto Scaling • Remove the guesswork out of provisioning adequate capacity • Increases capacity as application requests increase, ensuring performance • Decreases capacity as application requests reduce, reducing costs • Full visibility into scaling activities from console • Fully managed, automatic, independent scaling of read and write capacity of base tables and global secondary indexes • Set only target utilization % and min/max limits • Accessed from management console, CLI, and SDK Features Key Benefits
  11. 11. Auto Scaling: example
  12. 12. • Well-suited for gradual changes in traffic volume • For known traffic patterns, disable Auto Scaling and use UpdateTable API to provision capacity • For unpredictable read bursts consider DAX • Capacity can be decreased up to 9 times per day • No limit on the number of increases • It’s usually best to use the same Auto Scaling configuration for tables and associated Global Secondary Indexes • Application Auto Scaling API • Now supports DisableScaleIn for DynamoDB Auto Scaling: things to know
  13. 13. • Read performance and scale: Microseconds response times at millions of reads/sec from single DAX cluster • Lower costs: Reduce provisioned read capacity for DynamoDB tables for tables with hot data DynamoDB Accelerator (DAX) DynamoDB Your Applications DynamoDB Accelerator • Fully managed, highly available • DynamoDB API compatible • Write-through • Flexible – use for one or multiple tables • Scales-out up to 10 read replicas • Fully integrated AWS service • Secure Key Benefits Features
  14. 14. • Extremely low read latency: sub-millisecond response times • As fast as it gets – in memory cache • Read scale: millions of reads/sec from single DAX cluster • High read volume • Unpredictable read spikes – e.g. hot item • At lower cost – reduce provisioned read capacity for DynamoDB tables Use DAX if you need...
  15. 15. DynamoDB Cache Your Applications Traditional side cache DynamoDB Your Applications Caching made simple DynamoDB Accelerator
  16. 16. Milliseconds to microseconds Read Performance
  17. 17. Scalability . . . Scale up to 244 GiB Scale-out for read volume Scale out up to 10 replicas Scale-up for cache size . . .
  18. 18. Caches and eviction Query Cache {query, scan} Item Cache {GetItem, PutItem} key, value query text, result set Least Recently Used (LRU) Write-through eviction Time-to-live (TTL)
  19. 19. Integrating DAX in your Application Replace the code in blue box with the code in green box
  20. 20. • SDK support: At present, only Java SDK supported • Support for other SDK’s in the works • Regions: Currently available in N. Virginia, Oregon, Ireland, Tokyo, N. California • Other regions coming • Instances supported: r3 • CloudFormation: support just added DAX: things to know
  21. 21. • Access DynamoDB via secure Amazon VPC endpoint • Customize access for each VPC endpoint with unique IAM role and permissions Features Key Benefits • Turn off access from public Internet gateways enhancing privacy and security • Secure data transfer between Amazon VPC and DynamoDB without IGW or NATGW • Simplified network configuration • Cost savings – no extra charges VPC Endpoints for DynamoDB (VPC-E) VPC EC2 Instances VPC Endpoint DynamoDB New!
  22. 22. • General endpoint limitations, e.g: • Endpoints are supported for IPv4 traffic only • Endpoint connections cannot be extended out of a VPC • Endpoints cannot be transferred to another VPC or service • DynamoDB streams cannot be accessed via endpoints • Only same region traffic supported • Tailor the IAM access policy for your specific needs • Access only required resources • Use aws:sourceVpce condition to restrict access VPC Endpoints: things to know
  23. 23. Data Migration Service: DynamoDB target • DMS helps migrate data to AWS • Now supports DynamoDB as a migration target • Supports relational DBs or MongoDB as a source • Migrate your data from any available source database to DynamoDB
  24. 24. • Cost Allocation Tagging • TTL • Auto Scaling • DAX • VPC Endpoints For more information
  25. 25. Thank you!