All technological notes.
RDBMS (= SQL / OLTP): – great for joins
RDSAuroraNoSQL database – no joins, no SQL :
DynamoDB (~JSON),ElastiCache (key / value pairs),Neptune (graphs),DocumentDB (for MongoDB),Keyspaces (for Apache Cassandra)Object Store:
S3 (for big objects)Glacier (for backups / archives)Data Warehouse (= SQL Analytics / BI):
Redshift (OLAP),Athena,EMRSearch:
OpenSearch (JSON) – free text, unstructured searchesGraphs:
Amazon Neptune – displays relationships between dataLedger:
Amazon Quantum Ledger DatabaseTime series:
Amazon TimestreamNote: some databases are being discussed in the Data & Analytics section
| Laug | K-V | File size | |
|---|---|---|---|
| S3 | Y | Big | |
| RDS | SQL | ||
| Aurora | SQL | ||
| ElastiCache | Y | ||
| DynamoDB | NoSQL | Y | Small |
| DocumentDB | NoSQL | Y | |
| Keyspace | NoSQL/CQL | Y | |
| Neptune | |||
| QLDB | |||
| Timestream |
Usage:
key / value store for objectsFeature:
S3 Batch, listing files using S3 InventoryS3 Transfer Acceleration, S3 SelectS3 Event Notifications (SNS, SQS, Lambda, EventBridge)Security:
IAM, Bucket Policies, ACL, Access Points, Object Lambda, CORS, Object/Vault LockUse Cases:
Usage:
PostgreSQL / MySQL / Oracle / SQL Server / MariaDB / CustomFeatures:
Read Replicas and Multi AZRDS Custom for access to and customize the underlying instance (Oracle & SQL Server)Security
IAM, Security Groups, KMS , SSL in transitIAM Authentication, integration with Secrets ManagerBackup and maintenance
Point in time restore feature (up to 35 days)Use case:
Usage:
PostgreSQL / MySQL, separation of storage and computeFeatures:
6 replicas, across 3 AZ – highly available, self-healing, auto-scalingRead ReplicasAurora Serverless – for unpredictable / intermittent workloads, no capacity planningAurora Multi-Master – for continuous writes failover (high write availability)Aurora Global: up to 16 DB Read Instances in each region, < 1 second storage replicationAurora Machine Learning: perform ML using SageMaker & Comprehend on AuroraAurora Database Cloning: new cluster from existing one, faster than restoring a snapshotSecurity
Backup and maintenance
Use case:
Usage
Redis / Memcached (similar offering as RDS, but for caches)Featurea
ElastiCache instance type (e.g., cache.m6g.large)Clustering (Redis) and Multi AZ, Read Replicas (sharding)Security
IAM, Security Groups, KMS, Redis AuthBackup
Point in time restore featureUse Case:
Key/Value store,Usage
NoSQL database, millisecond latencyFeatures:
ElastiCache as a key/value store (storing session data for example, using TTL feature)等价于 ElastiCacheDAX cluster for read cache, microsecond read latencyDynamoDB Streams to integrate with AWS Lambda, or Kinesis Data StreamsGlobal Table feature: active-active setupRCU within the PITR window, import from S3 without using WCUBackups
PITR (restore to new table)Security
Use Case:
Usage:
DocumentDB is the same for MongoDB (which is a NoSQL database)MongoDB is used to store, query, and index JSON dataFeatures
3 AZ10GB, up to 64 TB.Apache Cassandra)Usage:
Apache Cassandra is an open-source NoSQL distributed databaseFeatures:
3 times across multiple AZCassandra Query Language (CQL)Security and backup:
oint-In-Time Recovery (PITR) up to 35 daysUse cases:
Usage
graph dataset would be a social network
Features
3 AZ, with up to 15 read replicasUsa Case:
Usage:
QLDB stands for ”Quantum Ledger Database”ledger is a book recording financial transactionsFeatures:
SQLAmazon Managed Blockchain:
Usage:
Features:
SQL compatibilitySecurity:
Use cases:
