Specialized databases and consistency
Start with queries, not a catalog
RDS/Aurora suits relational queries and transactions; DynamoDB suits known key-based patterns. A document database groups related fields in a flexible document, a graph database follows relationships, and a time-series database organizes measurements by time. Choose a specialized service only when its model solves a real workload problem. Additional databases add operational and consistency boundaries.
Match a specialized service to the workload
Consider Amazon DocumentDB for MongoDB-compatible document workloads, Neptune for graph traversal and Amazon Keyspaces for Cassandra-compatible wide-column workloads. Consider Timestream for InfluxDB for time-series ingestion and querying. Timestream for LiveAnalytics closed access to new customers on June 20, 2025; existing customers must evaluate their own migration needs. Aurora DSQL is a distributed PostgreSQL-compatible relational option. Compatibility does not imply identical operators, extensions, drivers or transaction behavior. Test the actual query set and limits.
Supplier paths → Neptune candidateSensor history → Timestream for InfluxDB candidateOrder + stock transaction → relational database candidateConsistency is a business requirement
A strong read provides freshness according to the service’s documented guarantee; an eventually consistent replica can temporarily return an older value. Isolation describes what concurrent transactions can observe; atomicity means an operation commits as a unit or not at all. These properties are distinct from durability and availability. Aurora DSQL uses distributed transactions and supports strong consistency, but PostgreSQL feature differences and retry behavior need review. A bookstore can accept a stale recommendation but must confirm inventory atomically at checkout. Keep one authoritative stock record and handle transaction conflicts with bounded, safe retries.
Decide with a small proof of concept
Write down the dominant queries, acceptable staleness, transaction scope, expected traffic, recovery point objective (RPO), recovery time objective (RTO), region and spending limit. Test representative data and failure recovery before adoption. Estimate compute, storage, requests, backup, transfer and operational effort using dated service-specific rates; a budget alert is not a spending cap. Start with the simplest database that meets requirements. Practice: choose candidates for supplier relationship traversal, sensor history and checkout, then describe one test that could reject each choice.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Specialized databases and consistency — knowledge check
Apply cache and database decisions to fictional workloads.
Which service is a candidate for following supplier relationships across several edges?
A new customer needs time-series storage. Which candidate avoids the LiveAnalytics new-customer restriction?
What does PostgreSQL compatibility of Aurora DSQL imply?
Which operation should use an authoritative atomic stock check?
Which evidence best supports a database selection?