DynamoDB Alternatives: What to Use Instead, and When to Switch
New to this choice? Read SQL vs NoSQL: key differences and when to use each first, and see the Cassandra vs Redis vs DynamoDB vs Elasticsearch vs ScyllaDB comparison for how DynamoDB stacks up head to head.
DynamoDB Alternatives: What to Use Instead, and When to Switch
DynamoDB is a good database. Teams rarely leave because it's slow or unreliable. They leave because of the bill, a hard limit, the way it constrains queries, or because they don't want their data tied to AWS. The right alternative depends on which of those it is.
Short answer:
- Same model, lower cost at scale, or off AWS: ScyllaDB (with its DynamoDB-compatible API) or Apache Cassandra.
- You need flexible queries on documents: MongoDB / MongoDB Atlas.
- You're moving to Azure or Google Cloud: Azure Cosmos DB, or Firestore and Bigtable.
- It was really a cache: Valkey or Redis.
- You didn't need NoSQL at all: PostgreSQL with JSONB.
Why teams leave DynamoDB
1. Cost at steady, high volume
DynamoDB bills either per request (on-demand) or for capacity you provision per hour. On-demand is great for spiky or unknown traffic. At high and steady throughput, paying per request can cost more than running your own cluster, even after paying people to run it. Provisioned capacity and reserved capacity narrow the gap, so model all three before you decide to move.
2. The 400 KB item limit
Each item can be at most 400 KB. The usual fix is to store large objects in S3 and keep a pointer. If your items regularly bump into the limit, a document database with bigger documents may fit better.
3. Query flexibility
A DynamoDB Query needs a single partition key value. Anything else is a Scan, which reads the whole table, or a secondary index. Tables get 20 global secondary indexes by default and 5 local ones. That's fine when you know your access patterns up front. It hurts when product keeps asking for new filters, ad-hoc reports or joins.
4. Lock-in and multi-cloud
DynamoDB runs only on AWS. Its API, IAM integration, Streams and DAX don't exist elsewhere. If you need to run on another cloud or on premises, for customers, regulation or cost leverage, you need something else.
DynamoDB alternatives at a glance
| Model | Query style | Max item / document | Where it runs | License | |
|---|---|---|---|---|---|
| ScyllaDB | Wide-column; DynamoDB-compatible API (Alternator) | CQL, or DynamoDB API | — | Self-managed, or ScyllaDB Cloud | Source-available (last open-source release: 6.2) |
| Apache Cassandra | Wide-column | CQL | — | Self-managed, or Keyspaces, Azure Managed Instance, Astra DB | Apache 2.0 |
| MongoDB / Atlas | Document | MongoDB Query API, aggregation pipelines | 16 MiB | Self-managed, or Atlas on AWS, Azure or Google Cloud | SSPL (Community Server) |
| Azure Cosmos DB | Document, key-value, wide-column, graph | SQL-like (NoSQL API), or MongoDB, Cassandra, Gremlin, Table APIs | 2 MB (NoSQL API) | Azure only | Proprietary service |
| Google Firestore | Document | Indexed queries | 1 MiB | Google Cloud only | Proprietary service |
| Google Bigtable | Sorted key-value (wide-column) | Row key lookups and scans; HBase API; SQL | Values ideally ≤ 10 MB | Google Cloud only | Proprietary service |
| Valkey / Redis | In-memory key-value and data structures | Commands per data type | Bounded by memory | Self-managed, ElastiCache, many hosts | Valkey: BSD. Redis 8+: RSALv2, SSPLv1 or AGPLv3 |
| PostgreSQL | Relational, with JSONB documents | SQL, JSONB operators | — | Anywhere; every cloud has a managed Postgres | PostgreSQL License |
| DynamoDB (for reference) | Key-value and document | Query by partition key, Scan, PartiQL | 400 KB | AWS only | Proprietary service |
A dash means the limit doesn't map neatly to a single item size. Facts are from each vendor's documentation as of December 2026. Check again before you rely on one, because limits and licenses change.
The alternatives, by reason for leaving
If the problem is cost or lock-in, and you like the model: ScyllaDB
ScyllaDB is a C++ reimplementation of Cassandra. It speaks CQL, and it also offers Alternator, an API that ScyllaDB says is compatible with DynamoDB. ScyllaDB pitches Alternator as a way to move DynamoDB applications without rewriting them and to run them outside AWS. ScyllaDB Cloud is its managed service, listed on AWS and Google Cloud.
Things to know:
- These are vendor claims. ScyllaDB's own Alternator compatibility page lists gaps. At the time of writing these include no
TransactWriteItems/TransactGetItems, no PartiQL, no on-demand backups or point-in-time recovery, no DAX, and authorization through CQL grants instead of IAM. If your app uses any of these, you have code to change. - Licensing changed. ScyllaDB moved to a source-available model. Open Source 6.2 is the last AGPL release. ScyllaDB says the full Enterprise edition is free up to 10 TB of disk and 50 vCPUs per organization. Read the terms before you build on it.
If you want an open-source, run-anywhere option: Apache Cassandra
Cassandra is the original wide-column database in this family, licensed under Apache 2.0. Data modeling feels familiar to DynamoDB users: you design tables around queries, pick partition keys carefully and denormalize. You also get per-query consistency levels, and Cassandra 5.0 added Storage-Attached Indexes and vector search.
The catch is operations. Running Cassandra well means handling repairs, compaction, upgrades and capacity. If you don't want that, use a managed Cassandra:
- Amazon Keyspaces (for Apache Cassandra): serverless and Cassandra-compatible, so you keep CQL and your drivers. It's still AWS-only, so it fixes the model and cost questions but not lock-in.
- Azure Managed Instance for Apache Cassandra: manages real open-source Cassandra data centers in Azure (Cassandra versions up to 5.0), and can join a ring that also runs on premises or on another cloud.
- DataStax Astra DB: a cloud database built on Apache Cassandra, now sold by IBM after it acquired DataStax.
If you need flexible queries on documents: MongoDB
If your pain is "we keep needing new queries", MongoDB is the most common move. You get secondary indexes on any field, rich filters and aggregation pipelines, documents up to 16 MiB, and multi-document transactions. MongoDB Atlas is the managed service and runs on AWS, Azure and Google Cloud, which also helps with lock-in.
Mind the license: MongoDB Community Server has been under the SSPL since October 2018, which matters if you plan to offer it as a service.
If you're moving clouds: Azure Cosmos DB, Firestore or Bigtable
These trade AWS lock-in for another cloud's, so they make sense when the move is a business decision.
- Azure Cosmos DB is the closest Azure equivalent to DynamoDB: fully managed, partitioned, with serverless and provisioned (request unit) throughput, turnkey multi-region writes and a 99.999% availability SLA for multi-region setups. It offers several APIs: its native API for NoSQL, plus MongoDB, Apache Cassandra, Gremlin and Table APIs. Items can be up to 2 MB on the NoSQL API, and each logical partition holds up to 20 GB.
- Google Firestore is a managed document database with 1 MiB documents. It fits app backends, especially mobile and web apps using Firebase.
- Google Bigtable is for very large sorted key-value data: time series, IoT, financial ticks, analytics. Only the row key is indexed, so it rewards the same "design around access patterns" thinking as DynamoDB. It offers an HBase-compatible client and supports SQL queries.
If it was a cache all along: Valkey or Redis
Some DynamoDB tables are really sessions, rate limits, counters or short-lived state. An in-memory store is faster and often cheaper for that.
- Valkey is a Linux Foundation project under the BSD license.
- Redis 8 and later can be used under RSALv2, SSPLv1 or AGPLv3.
- Amazon ElastiCache supports Valkey, Redis OSS and Memcached, both serverless and as node-based clusters.
Keep durable data (orders, users, money) in a real database and use the cache in front of it.
If you didn't need NoSQL: PostgreSQL with JSONB
A lot of DynamoDB tables hold a few gigabytes of relational data that someone forced into a key-value model. If that's you, PostgreSQL is often the best "alternative": joins, ad-hoc SQL, transactions, and jsonb columns for the flexible parts. jsonb supports containment (@>) and key-existence (?) operators, and a GIN index makes those queries fast. Every major cloud offers managed Postgres, so it's also the most portable option here.
How to choose
- Write down why you're leaving. Cost, item size, queries or lock-in. Each points to a different group above.
- List your access patterns. If they're fixed and key-based, stay with the DynamoDB family (ScyllaDB, Cassandra, Keyspaces, Bigtable). If they keep changing, look at MongoDB or Postgres.
- Check the features you use. Transactions, Streams, TTL, global tables, PITR backups. Make sure the target has an equivalent, or plan the replacement.
- Price your real workload. Use a month of actual read and write volume, item sizes and storage, plus the people cost of running a cluster yourself.
- Run a proof of concept with production-shaped data and traffic before you commit, especially where you're relying on a vendor's compatibility or performance claims.
Cassandra alternatives
The same logic works in reverse. If you run Cassandra today and want out of operating it, the options are a managed Cassandra (Amazon Keyspaces, Azure Managed Instance for Apache Cassandra, Astra DB, or Cosmos DB's Cassandra API), ScyllaDB for fewer and faster nodes, DynamoDB if you're all-in on AWS, or Bigtable on Google Cloud.
Migration notes
- Model first, then move data. A DynamoDB single-table design rarely maps one to one onto MongoDB or Postgres. Rebuild the schema around the target's strengths.
- Bulk copy with export, catch up with Streams. DynamoDB can export a table to S3, and DynamoDB Streams can capture changes made while the copy runs. Replay those changes, then cut over.
- Dual-write or shadow-read carefully. Compare results from both databases before switching reads, and keep a path back.
- Watch consistency differences. DynamoDB reads are eventually consistent unless you ask for strong consistency. Cassandra uses per-query consistency levels. ScyllaDB's Alternator docs warn that, without a specific setting, concurrent writes to the same item are ordered by node clocks.
- Plan for the features that don't carry over. IAM-based access, DAX, PITR and multi-item transactions often need replacing with something on the target side.
Sources
- AWS: DynamoDB quotas, Query, capacity modes, Amazon Keyspaces and ElastiCache
- ScyllaDB: DynamoDB-compatible API, Alternator compatibility and source-available FAQ
- Apache Cassandra 5.0; Microsoft: Azure Managed Instance for Apache Cassandra; IBM: DataStax
- MongoDB: limits, Community Edition licensing and Atlas
- Microsoft: Azure Cosmos DB overview, APIs and limits
- Google: Firestore quotas and Bigtable overview
- Valkey; Redis licenses
- PostgreSQL: JSON types and jsonb indexing
Frequently asked questions
What is the best alternative to DynamoDB?
It depends on why you're leaving. For the same key-value model outside AWS or at lower cost at high, steady volume, look at ScyllaDB or Apache Cassandra. For flexible queries on documents, MongoDB. For a managed database on another cloud, Azure Cosmos DB or Google Firestore and Bigtable. If you never needed NoSQL, PostgreSQL with JSONB is often the simplest choice.
Is there a DynamoDB-compatible database?
ScyllaDB offers Alternator, an API that ScyllaDB says is compatible with DynamoDB, so existing SDK code can point at a ScyllaDB cluster. ScyllaDB's own compatibility docs list gaps, including multi-item transactions, PartiQL and on-demand backups, so test your workload before you commit.
Is Cassandra a good alternative to DynamoDB?
Yes, for large, write-heavy workloads that you want to run on any cloud or on premises. The data modeling is similar: design tables around queries. You either run the cluster yourself or use a managed service such as Amazon Keyspaces, Azure Managed Instance for Apache Cassandra or DataStax Astra DB.
What are the alternatives to Cassandra?
ScyllaDB (Cassandra-compatible, written in C++), Amazon Keyspaces (Cassandra-compatible and serverless on AWS), Azure Cosmos DB's API for Apache Cassandra, Google Bigtable for wide-column data on Google Cloud, and DynamoDB itself if you are on AWS and want a fully managed service.
What is the maximum item size in DynamoDB compared to other databases?
DynamoDB allows 400 KB per item. Firestore allows 1 MiB per document, Azure Cosmos DB allows 2 MB per item on the API for NoSQL, and MongoDB allows 16 MiB per document.
Ship AI features that survive real traffic
Start from the failure modes, choose the smallest architecture that holds up, and instrument the path before you scale it.
If you found this article helpful, consider buying me a coffee to support more content like this.
Related Articles

Cassandra, ScyllaDB, Elasticsearch, Redis and DynamoDB compared: data model, consistency, limits, licensing and cost, with head-to-head picks for each pair.
Explore architecture, performance optimization, and handling large-scale traffic with Node.js and MongoDB. Learn the best practices for building scalable web applications in 2024.

Learn the key differences between SQL and NoSQL databases, when to use each, and best practices for selecting the right database for your application.
Ship AI features that survive real traffic
Start from the failure modes, choose the smallest architecture that holds up, and instrument the path before you scale it.