Skip to main content

How do you choose a serverless database on AWS?

Compare DynamoDB and Aurora Serverless from data model, query patterns, transactions, scaling, connections, latency, operations, and cost.

How do you choose a serverless database on AWS?

Choosing a serverless database on AWS starts with the data model and required operations. DynamoDB is a serverless NoSQL key-value and document database designed around explicit access patterns, while Amazon Aurora Serverless v2 is an autoscaling configuration for the Aurora relational database engine and supports SQL, relational constraints, and compatible database tooling.

How this topic fits

Data

Select object, NoSQL, relational, and streaming data services from access patterns, consistency, scale, and recovery requirements.

Write the data requirements before comparing services

List entities, relationships, read and write patterns, consistency, transaction boundaries, query flexibility, latency objectives, throughput shape, data size, retention, recovery, regional needs, and compliance controls.

The word serverless describes infrastructure management, not a universal data model. A service can scale automatically and still be wrong for joins, hot keys, connection behavior, query variability, or recovery objectives.

Choose DynamoDB for key-oriented scale

DynamoDB fits workloads whose access patterns can be expressed through primary keys and indexes and which benefit from managed horizontal distribution. Conditional writes, transactions, streams, time to live, backups, and global tables support many operational application patterns.

The design cost is upfront modeling. Unplanned ad hoc queries, concentrated partition keys, oversized items, and unclear index strategy can undermine an otherwise scalable service.

Choose Aurora Serverless for relational behavior

Aurora Serverless v2 automatically adjusts database capacity within configured bounds while retaining Aurora's relational engine, SQL interfaces, transactions, joins, indexes, and schema constraints.

It remains a database cluster with connection, query, transaction, schema migration, minimum capacity, backup, and failover considerations. Autoscaling capacity does not make inefficient queries or excessive connections disappear.

Prototype the hardest access and failure paths

Model the most demanding transaction, query, traffic burst, migration, and restore for each credible option. Measure integrated latency and cost with representative data rather than comparing headline features.

Polyglot persistence can be correct when boundaries are explicit—for example, DynamoDB for operational state and S3 for objects—but every additional store adds consistency, security, backup, and operator responsibilities.

Go deeper with AWS

Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.

Explore serverless products

Questions about this topic

Browse all serverless concepts

Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.

What is serverless?

Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.

Read the guide

What is AWS Lambda?

Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.

Read the guide

What is serverless architecture?

Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.

Read the guide

AWS serverless security

A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.

Read the guide

What is agentic AI?

Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.

Read the guide

What is cloud computing?

Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.

Read the guide

What is event-driven architecture?

Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.

Read the guide

What is a serverless API?

Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.

Read the guide

What are serverless workflows?

Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.

Read the guide

What is Amazon API Gateway?

Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.

Read the guide

What is Amazon EventBridge?

Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.

Read the guide

Make the next serverless decision explicit.

Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.