DynamoDB

  • Can handle several million queries per second at its peak and respond in milliseconds

  • User data in the form of JSON documents, then it is DynamoDB (not RDS)

  • key-value store 🡺 DynamoDB

  • The maximum item size in DynamoDB is 400 KB,

  • On-Demand

    • Your application traffic is difficult to predict (unpredictable) and control,

    • Flash sale

    • Your workload has large spikes of short duration, or if your average table utilization is well below the peak.

    • New applications, or applications whose database workload is complex to forecast

    • Developers working on serverless stacks with pay-per-use pricing

    • SaaS provider and independent software vendors (ISVs) who want the simplicity and resource isolation of deploying a table per subscriber

  • Provisioned


  • VPC Endpoints for DynamoDB

    • Helps you to connect to DynamoDB within AWS network (VPC)

    • You need route table entry created for the endpoint.

  • DynamoDB Time to Live (TTL)

    • TTL is useful if you store items that lose relevance (delete items) after a specific time

      • Remove user or sensor data after one year of inactivity in an application.

      • Archive expired items to an Amazon S3 data lake via Amazon DynamoDB Streams and AWS Lambda.

      • Retain sensitive data for a certain amount of time according to contractual or regulatory obligations.

      • Orders placed after one month will no longer be monitored

  • Secondary Index

    • Search item using more than one key: value

      • tracking ID, or customer ID, or order ID

  • minimal operational overhead expenditures 🡺 DynamoDB (not RDS)

  • DynamoDB Accelerator (DAX)

    • Fully managed , highly available In-memory caching system used inform of DynamoDB

    • performance improvement from milliseconds to microseconds for DynamoDB