Nic Acton
  • My Gitbook
  • My Favorite Things
    • Podcasts
    • Newsletters
  • Monthly Summaries
    • May 2019
    • June 2019
  • Cloud Computing
    • Cloud Concepts
    • AWS
      • Certified Solutions Architect
      • Well Architected Framework
        • Operational Excellence
        • Reliability
        • Performance Efficiency
        • Cost Optimization
        • Security
      • Analytics
        • Elasticsearch Service
        • Kinesis
        • Elastic MapReduce (EMR)
      • Compute Services
        • Elastic Beanstalk
        • Elastic Container Service (ECS)
      • Deployment
        • CloudFormation
      • Application Services
        • Key Management Service (KMS)
        • Simple Queue Service (SQS)
        • API Gateway
        • Simple Work Flow (SWF)
        • Amazon MQ
        • Simple Notification Service (SNS)
      • Simple Storage Service (S3)
        • Macie
      • Databases
        • RDS
        • DynamoDB
        • ElastiCache
        • Neptune
        • Redshift
      • Cloudfront
      • IAM
      • Monitoring
        • Trusted Advisor
        • Amazon Inspector
        • AWS Config
        • AWS Shield
        • CloudWatch
          • VPC Flow Logs
        • CloudTrail
        • Guard Duty
      • Route53
      • Serverless Architectures
        • Lambda
      • VPC
        • Highly Available & Fault Tolerant VPCs
        • Hybrid Environments
          • VPC Peering
          • Direct Connect
        • Cloud HSM
    • GCP
    • Azure
    • HashiCorp
    • Red Hat
      • RHEL
        • Basics
        • Grep & Regex
        • SSH
      • Ansible
    • Tutorials/Guides
      • Linux
        • Admin
  • Software Engineering
    • Machine Learning
      • Deep Learning
        • Tensorflow
      • Training and Loss
    • Programming
      • APIs
    • Security
    • Web Development
      • OSI 7 Layer Model
    • Tutorials/Guides
      • Apache Server
    • Virtualization
      • Virtual Machines
      • Containers
      • Serverless
  • Fitness
    • Nutrition
      • Diets
      • Macronutrients
      • Supplements
      • Miscellaneous
    • Strength Training
    • BodyBuilding
  • Miscellaneous
    • Technology Ethics
      • Education
    • Interesting Concepts
      • Libertarian Paternalism
Powered by GitBook
On this page
  • Essentials
  • Backups
  • Read Replicas
  • Multi-AZ Failover:
  • Aurora

Was this helpful?

  1. Cloud Computing
  2. AWS
  3. Databases

RDS

Fully-Managed SQL Database Engines as a Service on AWS

Essentials

  • Managed Relational Database Service

    • No access to underlying OS

    • Connect to the RDS database server in the same way you connect to traditional on-premise DB instances (MySQL command line)

    • Provision/Resize on demand for scaling

    • Mutli-AZ deployments for backup and high availability

    • Read Replicas to help offload hits on your primary database

    • Often OLTP databases

  • Supported DBs

    • MySQL

    • MariaDB

    • PostgreSQL

    • Oracle

    • MS SQL

    • Aurora

  • Benefits of RDS vs Your Own:

    • Automatic minor updates

    • Automatic backups (point-in-time snapshots)

    • Server/Platform managed by AWS (PaaS)

    • Multi-AZ in a single click

    • Automatic recovery in the event of a failover

Backups

  • AWS Provides automated point-in-time backups against the RDS DB instance

  • Deleted once the database is deleted and cannot be recovered

  • Maximum retention is 35

  • Manual snapshots retained as long as you want

  • Snapshots can be copied to other regions for Disaster Recovery purposes

  • RDS Encryption - snapshots are automatically encrypted

Read Replicas

  • Read replicas are asynchronous copies of the primary database that are used for read only purposes (only allow "read connections").

  • When you write new data to the primary database, AWS copies it for you to the read replica

  • You can create, and have multiple read replicas for a primary DB

  • Cross-region read replicas are supported

  • MySQL, MariaDB, PostgreSQL, and Aurora currently support read replicas.

  • You can monitor replication lag using CloudWatch

Multi-AZ Failover:

  • Synchronously replicates data to a backup DB instance located in another availability zone (but in the same region)

  • In the event of:

    • Service outage in an AZ

    • Primary DB instance failure

    • Instance server type is changed

    • Manual failover initiated

    • Updating software versions

    • AWS will automatically switch the DNS record from the primary instance to the stand-by instance

  • RDS backups are taken against the stand-by instance to reduce I/O freezes and slow down IF multi-az is enabled

  • In order for multi-az to work, your primary database instance must be launched into a "subnet group"

Aurora

  • AWS home-grown relational DB forked from and fully compatible with MySQL and PostgreSQL

    • 5x better performance than MySQL, 3x faster than PostgreSQL, lower price point as well

    • Features:

      • Continuous Backup

      • Up to 15 Read Replicas across 3 AZs

      • Replication Lag of Single digit milliseconds

      • Backtrack in Seconds

      • Multi-Master Option

    • Aurora Serverless

      • Autoscaling

      • No management of instances/clusters

      • Scales to Zero

      • Pay-as-you-go: (ACUs, Storage, I/O)

PreviousDatabasesNextDynamoDB

Last updated 6 years ago

Was this helpful?