Serverless, fully managed, distributed NoSQL database with single-digit millisecond performance at any scale
servicefree
Amazon DynamoDB is AWS's serverless key-value and document database: there are no servers, versions or maintenance windows, and tables scale automatically, either billed per request (on-demand, which scales to zero) or by provisioned capacity with auto scaling and reserved capacity. Items are found by their primary key or through global and local secondary indexes, with ACID transactions of up to 100 actions, DynamoDB Streams for change data capture, TTL, and vector search indexes. Global tables replicate actively across AWS Regions with 99.999% availability, and point-in-time recovery restores a table to any second in the last 1 to 35 days. Data is encrypted in transit and at rest by default, with access controlled by IAM down to individual items and attributes. Launched in 2012, it runs Amazon.com, Alexa and Amazon's fulfillment centers.
Problems it solves
- a database for my serverless app that I never have to provision, patch or upgrade
- our relational database falls over at peak traffic and sharding it by hand is a nightmare
- consistent single-digit millisecond reads and writes whether we have 10 users or 100 million
- pay only for the reads and writes we make and nothing when the table sits idle
- replicate a table across several AWS regions so users read and write locally and we survive a region outage
- someone ran a test script against production and deleted items, restore the table to a second before
- react to every change in a table with a Lambda function
- make all-or-nothing changes to several items across tables
- store session state and shopping carts for millions of users at low latency
- expire old items automatically without running a cleanup job
- add vector similarity search to the operational database we already use instead of running another one
- query items by attributes other than the primary key without scanning the whole table
- cut storage cost for rarely read data like old logs and order history
- restrict which users can read or write specific items and attributes in a table
- export a table to S3 for analytics without writing code or affecting production
Features
- on-demand capacity mode billed per request, scaling to zero
- provisioned capacity with auto scaling and 1- or 3-year reserved capacity
- global and local secondary indexes
- ACID transactions of up to 100 actions within and across tables
- global tables: active-active multi-Region replication with 99.999% availability
- point-in-time recovery to any second within 1 to 35 days
- on-demand backup and restore, AWS Backup integration
- encryption in transit and at rest by default, with AWS owned, AWS managed or customer managed KMS keys
- IAM fine-grained access control down to items and attributes
- VPC gateway and interface endpoints (AWS PrivateLink)
View 5 more
- Standard-Infrequent Access table class, 60% lower storage cost
- vector search indexes up to 4,096 dimensions with Euclidean, cosine and dot product distance
- bulk import from and export to Amazon S3
- DynamoDB Streams and TTL
- DynamoDB local, a downloadable version for development and testing
Limitations
- Can't be self-hosted: the downloadable DynamoDB local is for development and testing only1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Amazon DynamoDB does.
- Cloud Firestore A flexible, scalable NoSQL cloud database for mobile, web and server development
- Azure Cosmos DB Microsoft's fully managed, globally distributed NoSQL and vector database
- MongoDB The free, source-available version of MongoDB
- Apache Cassandra Open source distributed NoSQL database built for scale and high availability
- ScyllaDB A high-throughput, low-latency NoSQL database compatible with Apache Cassandra and Amazon DynamoDB
- Couchbase Distributed JSON document database with a built-in cache, SQL++ queries, search and mobile sync
