AWS in 1 Min · Episode 121

DocumentDB, Neptune and friends: AWS purpose-built databases explained

Purpose-built databases. Watch the one-minute video, then read the details.

David Gomez1:17 video · 3 min read

"One relational database fits every job." It can store almost anything, but some data simply isn't shaped like rows and columns. Product catalogs where every item has different fields, social and fraud networks made of links, sensor readings arriving every second: forced into tables, they turn into wide sparse columns, endless joins and slow queries. That's why AWS offers purpose-built databases, each designed for one data shape and one kind of question.

Amazon DocumentDB: JSON documents

Amazon DocumentDB is a fully managed document database. You store JSON documents, and it is compatible with MongoDB, so most MongoDB drivers, tools and application code work with it.

Documents fit data whose shape changes from one record to the next: product catalogs, user profiles, content management, game state. A new attribute is just a new field in the document, with no schema migration across millions of rows.

A common mistake: treating "MongoDB compatible" as "identical to MongoDB". Check the compatibility notes for the operators and features your app depends on before you migrate.

Amazon Neptune: graphs

Amazon Neptune is a managed graph database. It stores things (nodes) and the relationships between them (edges) as first-class data, so questions like "who knows whom", "what did people like you also buy" or "which accounts share a card or a device" are fast traversals instead of chains of SQL joins.

Neptune supports the property-graph languages Gremlin and openCypher, and SPARQL for RDF graphs. AWS lists recommendations, fraud detection, knowledge graphs and network security among its main uses. Neptune Analytics is a separate in-memory engine for analysing large graphs quickly with graph algorithms.

The friends

  • Amazon Keyspaces: a serverless database compatible with Apache Cassandra, for wide-column workloads at scale.
  • Amazon MemoryDB: a durable in-memory database compatible with Valkey and Redis OSS. Unlike a pure cache, it is built to be the primary database.
  • Amazon Timestream for InfluxDB: managed InfluxDB for time series such as metrics, IoT and telemetry.

Some friends left

AWS retires services, and databases are no exception:

  • Amazon QLDB (the ledger database) reached end of support on July 31, 2025. AWS pointed customers to Aurora PostgreSQL.
  • Amazon Timestream for LiveAnalytics has been closed to new customers since June 20, 2025. Existing workloads keep running; AWS recommends Timestream for InfluxDB for new projects.

Before you build on any niche service, check its documentation for an availability notice. A database is hard to move later.

Where AI fits

Plain retrieval-augmented generation (RAG) finds text chunks that look similar to the question. That struggles when the answer is spread across documents, for example "which suppliers of our delayed parts also serve our biggest customer?". Amazon Bedrock Knowledge Bases can build a graph in Neptune Analytics from your documents, with the entities and the relationships between them. This GraphRAG feature has been generally available since March 2025: after a vector search, it follows the graph to related chunks, so the model gets connected context for questions that need several hops. It is available in a subset of Regions and currently reads only from Amazon S3 data sources, so check the docs for your setup.

Quick recap

  • The shape of your data picks the database: tables, documents, graphs, time series or keys.
  • DocumentDB for JSON documents, Neptune for connections, Keyspaces, MemoryDB and Timestream for InfluxDB for their own niches.
  • QLDB is retired and Timestream for LiveAnalytics is closed to new customers: always check availability first.
AWS in 1 Min #121 · 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