Rajesh DhimanRajesh Dhiman
Free AuditServicesCase StudiesProjectsBooksBlogResourcesAboutContact
Book a CallRD
  1. Home
  2. Blog
  3. DynamoDB Alternatives: What to Use Instead, and When to Switch

DynamoDB Alternatives: What to Use Instead, and When to Switch

RDRajesh Dhiman
December 1, 2026
12 min read
Backend & Databases
DynamoDB alternatives
alternatives to DynamoDB
Cassandra alternatives
ScyllaDB
Apache Cassandra
Amazon Keyspaces
MongoDB
Azure Cosmos DB
Firestore
Bigtable
Valkey
PostgreSQL
NoSQL databases

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

ModelQuery styleMax item / documentWhere it runsLicense
ScyllaDBWide-column; DynamoDB-compatible API (Alternator)CQL, or DynamoDB API—Self-managed, or ScyllaDB CloudSource-available (last open-source release: 6.2)
Apache CassandraWide-columnCQL—Self-managed, or Keyspaces, Azure Managed Instance, Astra DBApache 2.0
MongoDB / AtlasDocumentMongoDB Query API, aggregation pipelines16 MiBSelf-managed, or Atlas on AWS, Azure or Google CloudSSPL (Community Server)
Azure Cosmos DBDocument, key-value, wide-column, graphSQL-like (NoSQL API), or MongoDB, Cassandra, Gremlin, Table APIs2 MB (NoSQL API)Azure onlyProprietary service
Google FirestoreDocumentIndexed queries1 MiBGoogle Cloud onlyProprietary service
Google BigtableSorted key-value (wide-column)Row key lookups and scans; HBase API; SQLValues ideally ≤ 10 MBGoogle Cloud onlyProprietary service
Valkey / RedisIn-memory key-value and data structuresCommands per data typeBounded by memorySelf-managed, ElastiCache, many hostsValkey: BSD. Redis 8+: RSALv2, SSPLv1 or AGPLv3
PostgreSQLRelational, with JSONB documentsSQL, JSONB operators—Anywhere; every cloud has a managed PostgresPostgreSQL License
DynamoDB (for reference)Key-value and documentQuery by partition key, Scan, PartiQL400 KBAWS onlyProprietary 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

  1. Write down why you're leaving. Cost, item size, queries or lock-in. Each points to a different group above.
  2. 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.
  3. Check the features you use. Transactions, Streams, TTL, global tables, PITR backups. Make sure the target has an equivalent, or plan the replacement.
  4. 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.
  5. 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.

Free field guide

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.

No spam, unsubscribe anytime. You will also get instant access on the next screen.

Share this article

TwitterLinkedInFacebook
Buy Me a Coffee
Support my work

If you found this article helpful, consider buying me a coffee to support more content like this.

Buy a Coffee
RD

Written by

Rajesh Dhiman

Founder of Eunix Tech · Author · AI Systems Engineer

I've been building software for over a decade and I'm the founder of Eunix Tech, a software consultancy. I've written two books, the Vibe Coding Survival Guide and the Frontend Interview Guide, plus a set of practical engineering checklists. I spent 4 years at Alloy Automation building integrations for companies like Amazon and Best Buy, and I'm a top-rated mentor on Codementor (5.0 from 26 reviews). Today I rescue failing AI projects, audit AI-generated and no-code apps, and build production-grade automation that delivers measurable ROI.

AboutBooksEunix TechLinkedInGitHubXCodementor

Related Articles

Cassandra vs Redis vs DynamoDB vs Elasticsearch vs ScyllaDB: NoSQL Compared
Cassandra vs Redis vs DynamoDB vs Elasticsearch vs ScyllaDB: NoSQL Compared
8/19/2024

Cassandra, ScyllaDB, Elasticsearch, Redis and DynamoDB compared: data model, consistency, limits, licensing and cost, with head-to-head picks for each pair.

Building Scalable Web Applications with Node.js and MongoDB: Best Practices for 2024
Building Scalable Web Applications with Node.js and MongoDB: Best Practices for 2024
9/11/2024

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.

SQL vs NoSQL Databases: Key Differences, Use Cases, and Best Practices
SQL vs NoSQL Databases: Key Differences, Use Cases, and Best Practices
9/4/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.

On this page

  • Why teams leave DynamoDB
  • 1. Cost at steady, high volume
  • 2. The 400 KB item limit
  • 3. Query flexibility
  • 4. Lock-in and multi-cloud
  • DynamoDB alternatives at a glance
  • The alternatives, by reason for leaving
  • If the problem is cost or lock-in, and you like the model: ScyllaDB
  • If you want an open-source, run-anywhere option: Apache Cassandra
  • If you need flexible queries on documents: MongoDB
  • If you're moving clouds: Azure Cosmos DB, Firestore or Bigtable
  • If it was a cache all along: Valkey or Redis
  • If you didn't need NoSQL: PostgreSQL with JSONB
  • How to choose
  • Cassandra alternatives
  • Migration notes
  • Sources
  • Frequently asked questions
Free field guide

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.

No spam, unsubscribe anytime. You will also get instant access on the next screen.

App failing in production or automation that keeps breaking? Book a technical diagnostic →

Rajesh DhimanRajesh Dhiman

© 2026 Eunix Tech

Tickoff: one link for client files, answers and payment

Free AuditServicesCase StudiesProjectsBooksBlogResourcesMy StackAboutContact