AWS in 1 Min · Episode 110

SQL vs NoSQL on AWS: RDS, Aurora, DynamoDB and vector search

Pick the shape of your data. Watch the one-minute video, then read the details.

David Gomez1:17 video · 2 min read

"SQL is old, NoSQL is the future." It sounds modern, but it is the wrong question. Relational (SQL) and NoSQL databases solve different problems, and plenty of production systems on AWS run both side by side: a relational database for orders and billing, and a NoSQL table for sessions, carts or events. The real question is what shape your data has and how you will read it.

Relational (SQL) databases

A relational database stores data in tables with fixed columns. Rows in one table point to rows in another, and joins combine them at query time. Transactions make a group of changes all-or-nothing, which is why accounting, orders and inventory usually live here.

On AWS the relational options are:

  • Amazon RDS: managed MySQL, PostgreSQL, MariaDB, Oracle, SQL Server and IBM Db2. AWS installs, patches and backs up the database, and fails it over if you choose Multi-AZ.
  • Amazon Aurora: an Amazon-built engine compatible with MySQL and PostgreSQL, with its own distributed storage.

The strength is flexibility: you can ask questions you did not plan for when you designed the schema, with plain SQL.

NoSQL with DynamoDB

Amazon DynamoDB is a serverless, fully managed NoSQL database that supports key-value and document data models. There is no fixed schema beyond the key, and no JOIN operator: AWS recommends denormalizing your data so each request reads what it needs in one go.

In return you get consistent single-digit millisecond performance at any scale, whether the table serves a hundred users or a hundred million. DynamoDB also supports ACID transactions and strongly consistent reads, so "NoSQL means no consistency" is another myth.

The catch is design: you model the table around your access patterns. A query you did not plan for can be slow or expensive.

How to choose

  • Rich relationships, reporting, ad hoc queries: start relational (RDS or Aurora).
  • Known access patterns, huge or spiky scale, simple lookups by key: DynamoDB.
  • Both: common and fine. Keep each dataset in the store that fits it.

A common mistake is choosing DynamoDB because it "scales", then needing joins and reports every week. Another is putting a high-traffic session store on a single relational instance that falls over on launch day.

Where AI fits

AI adds a third kind of lookup: vector search. An embeddings model turns text or images into lists of numbers, and the database finds the items closest in meaning to a question, not the ones with matching words. That is the retrieval step behind most RAG chatbots.

On AWS you do not need a new kind of database to start. Amazon OpenSearch Service, and Aurora PostgreSQL or RDS for PostgreSQL with the pgvector extension, both store and search embeddings; AWS also lists MemoryDB and DocumentDB with vector search, and S3 Vectors for low-cost storage of large vector sets. If you already run PostgreSQL, pgvector lets embeddings live next to the rows they describe.

Quick recap

  • SQL (RDS, Aurora): tables, joins, transactions, flexible queries.
  • NoSQL (DynamoDB): items by key, no joins, fast at any scale when you design for your access patterns.
  • Vectors: search by meaning for AI, available in OpenSearch and PostgreSQL with pgvector.
AWS in 1 Min #110 · 1:17

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS