Databases Flashcards
RDS DB Tips
SQL server, Oracle, MySQL, Postgre SQL, Mana DB, and Amazon Aurora
When to use RDS
Great for online transaction processing, lots of small transactions like customer orders, banking transactions, payments & booking systems
When to not use RDS
Not good for online analytics processing.
Use Redshift for data warehousing & OLAP Tasks like analyzing large amounts of data, reporting, and sales forecasting
Read Replicas for RDS
- Scaling Read Performance
Used for scaling not disaster recovery - Requires Automatic Backups
Automatic backups must be enabled in order to deploy a read replica - Multiple Read Replicas are supported
Maria DB, MYSQL, PostgreSQL, Oracle, & SQL server allow up to 5 read replicas to each instance
RDS Multi AZ
An exact copy of your Prod DB in another AZ
Used only for disaster recovery
In the event of a failure RDS will automatically swap to the standby instance
What is Amazon Aurora Compatible with?
MySQL and postgreSQL
It is also an Amazon Proprietary db solution
Does Amazon Aurora create replicas?
Yes, 2 copies of your data are kept in each AZ w/ a min of 3 AZs = min 6 copies of your data
Supports 3 types of replicas
MySQL
postgre SQL
And Aurora
Only Aurora can do automated failovers from replicas not my sql or Postgre sql
Does Aurora support back ups / snapshots?
Yes
Aurora has automated backups turned on by default
You can also take snapshots with Aurora and these are shareable with other AWS accounts
Aurora Serverless Use cases
Provides a relatively simple, cost effective option for infrequent, intermittent, or unpredictable workloads
Scenarios about a serverless DB = Aurora
General Dynomo DB
Stored on SSD storage
Spread across 3 geographically distinct data centers
Eventually consistent reads
Strongly persistent reads are an option
What is Eventually Consistent Read
Consistency across all copies of data is usually reached with in a second.
Repeating a read after a short time should return the updated data.
Best read performance
What is a strongly consistent read
A strongly consistent read returns a result that reflects all writes that have received a successful response prior to the read
Dynomo DB Transactions
It consists of all or nothing operations
Good for financial transactions
Fulfilling orders
Etc.
Can have up to 25 items or 4 mb of data per write
Options for Dynomo DB Transactions
Reads can be: transactional, strong consistency, or eventual consistency
Write can be standard or transactional
Dynomo db transactions provides devs, atomicitu, consistency, isolation and durability (ACID) across one or more tables w/in a single AWS account and region
ACID scenarios think Dynomo DB
Dynomo DB on Demand Backup & Restore
Full backups @ anytime
Zero impact on table performance or availability
Consistent w/in same region as the source table
Consistent within seconds & retained until deleted