Internative Logo

What Is Amazon DynamoDB? AWS's Serverless NoSQL Database

What Is Amazon DynamoDB? AWS's Serverless NoSQL Database

Some applications have a simple question to answer millions of times a day: fetch this user's cart, this device's last reading, this game session, this order. The query is always the same shape, the traffic is uneven, and an hour of database maintenance is an hour of lost business. Amazon DynamoDB was built for exactly that kind of workload: a database you do not install, patch or size by hand, answering key-based reads and writes in single-digit milliseconds at any size.

This article explains what DynamoDB is, how its data model and capacity modes work, where it fits, where it does not, and how it compares with other NoSQL databases.

What is Amazon DynamoDB?

Amazon DynamoDB is a fully managed, serverless NoSQL database service from Amazon Web Services (AWS). It stores data as key-value pairs and JSON-like documents, and it handles servers, replication, backups and scaling for you. There is no instance to choose and no database engine version to upgrade; you create a table and start writing to it.

AWS launched DynamoDB on 18 January 2012. Werner Vogels, Amazon's CTO, introduced it as the outcome of lessons learned from Dynamo, the internal key-value store Amazon described in a 2007 research paper that went on to inspire several open-source databases, including Apache Cassandra. DynamoDB is a different system from that original Dynamo, though: it is a hosted service with its own architecture, offered only on AWS.

From the start, DynamoDB stored data on solid-state drives and replicated it synchronously across several Availability Zones in a Region. Since then AWS has added on-demand capacity, ACID transactions, global tables that replicate across Regions, point-in-time recovery and, in June 2025, global tables with multi-Region strong consistency.

How DynamoDB works

Tables, items and keys. Data lives in tables. Each record is an item, and each item is a set of attributes. Every item must have a primary key: either a partition key alone, or a partition key plus a sort key. Apart from the key, items in the same table can have different attributes, so there is no fixed schema.

Partitioning by key. DynamoDB hashes the partition key to decide which storage partition holds an item, and it splits and adds partitions as data and traffic grow. This is why reads by key stay fast at any size. It is also why the choice of partition key matters: if most traffic lands on a few keys, those partitions become hot spots.

Query, not search. You read data with GetItem for one item, or Query for all items under one partition key, optionally filtered by a sort-key range. Scan reads the whole table and is expensive at scale. To query by other attributes you add secondary indexes: global secondary indexes with their own keys, or local secondary indexes that share the table's partition key.

Access patterns first. Because there are no joins, DynamoDB tables are designed around the questions the application will ask, not around normalised entities. Teams often store several entity types in one table, with composite keys such as CUSTOMER#123 and ORDER#2024-05-01, so that one Query returns everything a screen needs.

Capacity modes. In on-demand mode you pay per request and DynamoDB absorbs traffic changes automatically. In provisioned mode you set read and write capacity, optionally with auto scaling, which suits steady, predictable traffic.

Key features

  • Serverless operation: no servers, patches or version upgrades; AWS handles hardware, replication and failover.
  • Predictable latency: single-digit millisecond reads and writes by key, at any table size.
  • Flexible consistency: eventually consistent reads by default, strongly consistent reads when needed, and ACID transactions across multiple items and tables.
  • DynamoDB Streams: an ordered log of item changes that can trigger AWS Lambda functions or feed other systems.
  • Global tables: multi-Region, multi-active replication, with a choice of eventual or strong consistency across Regions.
  • Time to live (TTL): items expire automatically at a timestamp you set, which is useful for sessions and temporary data.
  • DAX: an in-memory cache in front of DynamoDB for read-heavy workloads that need microsecond responses.
  • PartiQL: a SQL-compatible syntax for reading and writing items.

Where DynamoDB is used

  • High-traffic web and mobile backends: user profiles, carts, sessions and preferences read by key.
  • Serverless applications on Amazon Web Services, where DynamoDB pairs naturally with Lambda and API Gateway.
  • Gaming: player state, inventories and leaderboards that must stay fast during launches and events.
  • IoT and telemetry: the latest state of each device, or recent readings keyed by device and time.
  • Retail and order systems: AWS reports that DynamoDB serves Amazon's own Prime Day traffic, with a peak of 146 million requests per second in 2024.

When to choose DynamoDB, and when not to

Choose DynamoDB when:

  • The system already runs on AWS, and you want a database with no servers to operate.
  • Access patterns are known and mostly key-based: get by ID, list by owner, read the latest items.
  • Traffic is spiky or grows quickly, and you do not want to plan capacity in advance.
  • You need high availability across Availability Zones, or active-active replication across Regions.

Look elsewhere when:

  • The data is relational and the product depends on joins, ad hoc queries and reporting. A relational database such as PostgreSQL is a better fit.
  • Access patterns are still unknown. Changing a DynamoDB design later often means new indexes or migrating data into a new table.
  • You need full-text search, typo tolerance or faceting. Teams usually stream DynamoDB changes into a search engine such as Elasticsearch.
  • The system must run on several clouds or on-premise. DynamoDB exists only on AWS; there is a local version for development, not for production.
  • Items are large. A single item is limited to 400 KB, so files and large documents belong in Amazon S3 with a pointer in DynamoDB.

The most common problems are design problems: a poorly chosen partition key that creates hot partitions, tables that rely on Scan, and costs that grow because indexes duplicate every write.

DynamoDB and its alternatives

DatabaseModelWhere it runsBest fit
Amazon DynamoDBKey-value and documentAWS only, serverlessKey-based access at any scale on AWS
MongoDBDocumentSelf-hosted or Atlas on any cloudRich queries on flexible documents
Apache CassandraWide-columnSelf-hosted, many managed optionsWrite-heavy workloads across data centres
Azure Cosmos DBMulti-modelAzure onlyGlobally distributed apps on Azure
Cloud FirestoreDocumentGoogle CloudMobile and web apps with real-time sync

The question people ask most is DynamoDB vs MongoDB. Both store documents without a fixed schema, but they are built for different jobs. MongoDB has a rich query language, aggregation pipelines and secondary indexes on any field, and runs anywhere. DynamoDB gives up most query flexibility in exchange for predictable performance and zero operations, and it is tied to AWS. We explain why MongoDB is our usual default for new products in MongoDB vs Postgres: why we have recommended MongoDB for a decade.

On other clouds the closest equivalents are Azure Cosmos DB on Azure and Cloud Firestore on Google Cloud.

How we use DynamoDB at Internative

We use DynamoDB for cloud-native systems that need very high scalability and low-latency access. Because it is serverless, we can build resilient architectures without having to manage database infrastructure.

If you are designing a new product on AWS or moving an existing one to a managed cloud architecture, our cloud-based application development team can help you decide whether DynamoDB fits your data and access patterns.

Frequently asked questions

What is Amazon DynamoDB used for?

DynamoDB is used for application data that is read and written by key at high volume: user profiles, shopping carts, sessions, game state, device data and order records. It is especially common in serverless and event-driven systems on AWS, where it works alongside Lambda, API Gateway and Streams.

Is DynamoDB SQL or NoSQL?

DynamoDB is a NoSQL database. It stores key-value items and documents without a fixed schema and does not support joins. It does accept PartiQL, a SQL-compatible syntax, but that is a different way of writing key-based operations, not a relational query engine.

Is DynamoDB the same as MongoDB?

No. Both are NoSQL databases that store documents, but MongoDB is a database engine you can run anywhere, with a rich query language and flexible indexing. DynamoDB is a fully managed AWS service built around key-based access, with fewer query options and no servers to operate.

What are the disadvantages of DynamoDB?

It runs only on AWS, it does not support joins or flexible ad hoc queries, and changing access patterns later can require new indexes or data migration. Items are limited to 400 KB, full-text search needs a separate engine, and poorly chosen partition keys can create hot spots.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.