What is DynamoDB?

A serverless NoSQL database that stays fast at any size, as long as you know how you'll look things up.

1 min read

Amazon DynamoDB is a fully managed key-value and document database. There are no servers, no version upgrades, and no disks to resize. It responds in single-digit milliseconds whether your table holds a hundred items or a hundred billion.

Think of it like this

A relational database (like PostgreSQL) is a librarian who can answer any question by searching the shelves, which gets slower as the library grows. DynamoDB is a wall of labeled lockers: give it the locker number and you get the contents instantly, every time. The catch is that you have to decide how lockers are numbered up front.

When it shines

  • User profiles, sessions, shopping carts, and game state
  • High-traffic apps that need predictable speed
  • Serverless backends (it pairs naturally with Lambda)

When to think twice

  • You need ad-hoc queries, complex joins, or reporting across many fields. A relational database such as Aurora or RDS, or an analytics tool, is a better fit there.

In our project

Across this site we build one small project, piece by piece: NoteSnap, an app where you upload a text note and get back an AI-written summary. Each service adds one part. DynamoDB stores each note's summary so the app can fetch it instantly.

Key takeaways

  • DynamoDB is serverless NoSQL with consistent millisecond latency at any scale.
  • It's fastest when you look items up by key, so you design around your access patterns.
  • For ad-hoc queries and joins, a relational database is often the better tool.

Check your understanding

Pick an answer to see the explanation.

  1. 1. What's the main trade-off DynamoDB asks you to make?