သဘောတရား
Database types on AWS
Match the shape of your data to a relational, NoSQL or in-memory database.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Relational
- Your data looks like
- Tables with fixed columns, linked by keys
- Good for
- Orders, payments, accounts and business software
Key-value
- Your data looks like
- Items you fetch by a unique key
- Good for
- Shopping carts, game data and device data at huge scale
- On AWS
DynamoDB
Document
- Your data looks like
- JSON-like documents with flexible fields
- Good for
- Product catalogs, user profiles and content
- On AWS
DocumentDB
Graph
- Your data looks like
- Things and the relationships between them
- Good for
- Fraud detection, recommendations and social networks
- On AWS
Neptune
In-memory
- Your data looks like
- Data held in memory instead of on disk
- Good for
- Caching, sessions and leaderboards
- On AWS
ElastiCache
Data warehouse
- Your data looks like
- Large amounts of history from many sources
- Good for
- Reports and analytics, not day-to-day transactions
- On AWS
Redshift
| Type | Your data looks like | Good for | On AWS |
|---|---|---|---|
| Relational | Tables with fixed columns, linked by keys | Orders, payments, accounts and business software | |
| Key-value | Items you fetch by a unique key | Shopping carts, game data and device data at huge scale | |
| Document | JSON-like documents with flexible fields | Product catalogs, user profiles and content | |
| Graph | Things and the relationships between them | Fraud detection, recommendations and social networks | |
| In-memory | Data held in memory instead of on disk | Caching, sessions and leaderboards | |
| Data warehouse | Large amounts of history from many sources | Reports and analytics, not day-to-day transactions |
1 / 3
Relational
- Your data looks like
- Tables with fixed columns, linked by keys
- Good for
- Orders, payments, accounts and business software
Key-value
- Your data looks like
- Items you fetch by a unique key
- Good for
- Shopping carts, game data and device data at huge scale
- On AWS
DynamoDB
2 / 3
Document
- Your data looks like
- JSON-like documents with flexible fields
- Good for
- Product catalogs, user profiles and content
- On AWS
DocumentDB
Graph
- Your data looks like
- Things and the relationships between them
- Good for
- Fraud detection, recommendations and social networks
- On AWS
Neptune
| Type | Your data looks like | Good for | On AWS |
|---|---|---|---|
| Document | JSON-like documents with flexible fields | Product catalogs, user profiles and content | |
| Graph | Things and the relationships between them | Fraud detection, recommendations and social networks |
3 / 3
In-memory
- Your data looks like
- Data held in memory instead of on disk
- Good for
- Caching, sessions and leaderboards
- On AWS
ElastiCache
Data warehouse
- Your data looks like
- Large amounts of history from many sources
- Good for
- Reports and analytics, not day-to-day transactions
- On AWS
Redshift
| Type | Your data looks like | Good for | On AWS |
|---|---|---|---|
| In-memory | Data held in memory instead of on disk | Caching, sessions and leaderboards | |
| Data warehouse | Large amounts of history from many sources | Reports and analytics, not day-to-day transactions |
- 1If the engine changes, AWS SCT reads the schema and database code and converts them for the new engine. DMS Schema Conversion, part of AWS DMS, can do this job instead.
- 2The converted structure is created in the new database. With the same engine on both sides, you skip steps 1 and 2.
- 3AWS DMS reads the data, then keeps reading new changes while the current database is still in use.
- 4DMS writes the data into the new database. When the copy has caught up, applications switch to it.
အဆင့်ဆင့်
- 1If the engine changes, AWS SCT reads the schema and database code and converts them for the new engine. DMS Schema Conversion, part of AWS DMS, can do this job instead.
- 2The converted structure is created in the new database. With the same engine on both sides, you skip steps 1 and 2.
- 3AWS DMS reads the data, then keeps reading new changes while the current database is still in use.
- 4DMS writes the data into the new database. When the copy has caught up, applications switch to it.
ဘာလဲ
AWS offers purpose-built databases. Instead of one database for every job, you choose the type that fits how your data looks and how your application uses it. One application can use several types at once.
ဘာလဲ
Relational databases keep data in tables with fixed columns. You read and change the data with SQL, a standard query language. Amazon Relational Database Service (Amazon RDS) and Amazon Aurora are relational. NoSQL databases, also called non-relational databases, store data in other shapes: key-value items in Amazon DynamoDB, JSON-like documents in Amazon DocumentDB, and relationships in Amazon Neptune. In-memory databases, such as Amazon ElastiCache, keep data in memory for the fastest reads.
ဘာလဲ
To move an existing database to AWS, AWS Database Migration Service (AWS DMS) copies the data while the source stays in use. If the new database uses a different engine, its schema (the table structure and the code stored in the database) must be converted first. You can do this with DMS Schema Conversion, a feature of AWS DMS, or with the AWS Schema Conversion Tool (AWS SCT), an application you download.
မှတ်ထားရန်
- Relational: tables, SQL and joins. Amazon RDS and Amazon Aurora.
- NoSQL: key-value (DynamoDB), document (DocumentDB) and graph (Neptune).
- In-memory: ElastiCache, for microsecond reads such as caching and leaderboards.
- Relational databases usually scale up to a bigger server and add read replicas. NoSQL databases are designed to scale out across many servers.
မှတ်ထားရန်
- For reports on years of data, use a data warehouse: Amazon Redshift.
- AWS DMS moves the data. When the engine changes, AWS SCT or DMS Schema Conversion converts the schema first.
စာမေးပွဲမှာ
- “Structured data, SQL queries and joins between tables” points to a relational database: Amazon RDS or Amazon Aurora.
- “A NoSQL key-value database” is DynamoDB. “MongoDB compatibility” is DocumentDB. “An in-memory cache” is ElastiCache. “Highly connected data” is Neptune.
- “Migrate a database with minimal downtime” is AWS DMS. If the engine changes, the schema is converted first, with AWS SCT or DMS Schema Conversion.