The Wayback Machine - https://web.archive.org/web/20251228100906/https://www.geeksforgeeks.org/devops/amazon-aurora/

Amazon Aurora

Last Updated : 21 Nov, 2025

Amazon Aurora is a fully managed relational database engine that's compatible with MySQL and PostgreSQL. It combines the speed and availability of high-end commercial databases with the simplicity and cost-effectiveness of open-source databases.

  • Aurora provides up to 5x the throughput of standard MySQL and 3x the throughput of standard PostgreSQL.
  • It is part of the Amazon RDS family but uses a fundamentally different, cloud-native architecture that separates compute from storage.
failover_target

Aurora Storage Architecture

Unlike traditional databases that write data to a local disk (EBS volume), Aurora uses a log-structured distributed storage system.

  • 6 Copies Across 3 AZs: Every piece of data you write is automatically replicated 6 times across 3 Availability Zones (AZs).
  • Fault Tolerance: The system handles the loss of up to 2 copies of data without affecting write availability and up to 3 copies without affecting read availability.
  • Self-Healing: It continuously scans for data blocks and errors and repairs them automatically from the other copies.
  • Shared Storage Volume: The storage layer is independent of the compute instances. This allows you to add up to 15 Read Replicas that all read from the same underlying storage, eliminating the need to copy data between nodes (which causes lag in traditional replication).

Aurora Architecture Components

An Aurora "Cluster" consists of two main parts:

Writer Instance (Primary):

  • Handles all read and write operations.
  • There is always exactly one primary instance per cluster.

Reader Instances (Read Replicas):

  • Handle only read operations.
  • You can have up to 15 replicas.
  • Failover Target: If the Primary fails, Aurora automatically promotes one of the Readers to be the new Primary (typically in under 30 seconds).

Deployment Modes: Provisioned vs. Serverless

Aurora offers two ways to pay for and manage capacity:

1. Aurora Provisioned

  • How it works: You choose a specific instance class (e.g., db.r6g.large).
  • Best For: Predictable, steady-state workloads where you know your capacity needs.
  • Scaling: You manually scale up (change instance type) or use Auto-Scaling to add more Read Replicas.

2. Aurora Serverless v2

  • How it works: You define a capacity range (min/max ACUs - Aurora Capacity Units). The database automatically scales compute and memory up and down in fractions of a second based on actual traffic.
  • Best For: Variable workloads, dev/test environments, or SaaS applications where traffic spikes are unpredictable.
  • Cost: You pay only for the ACUs consumed (per second).

Advanced Features

1. Aurora Global Database

Designed for globally distributed applications. A single Aurora database can span multiple AWS Regions.

  • Low Latency: Replicates data to secondary regions with typical latency of < 1 second.
  • Disaster Recovery: If your primary region goes down, you can promote a secondary region to be the new primary in less than 1 minute.
  • Local Reads: Users in Europe can read from the Frankfurt replica while users in the US write to the Virginia primary.

2. Backtracking

An "undo button" for your database. You can rewind the database to a specific point in time (e.g., "5 minutes ago") almost instantly, without needing to restore a backup snapshot. This is invaluable for fixing bad deployments or accidental deletions.

3. Fast Cloning

Create a new cluster from an existing one in minutes, regardless of data size.

  • How it works: It uses a "copy-on-write" protocol. The new clone initially shares the same storage blocks as the original. New storage is allocated only when changes are made.
  • Use Case: Spinning up a full-size production clone for testing or analytics without paying for double storage.

How does Amazon Aurora Work

Aurora database cluster comprises of Primary database and Aurora replica database and a cluster volume to deal with the data for those database instances. Aurora cluster volume is certifiably not a physical but a virtual database storage volume that ranges over various Availability Zones to support worldwide applications better. Each zone has its duplicate of database cluster information.

  • The primary database is where all read and write operations are done over a cluster volume. Each cluster in Aurora will have one primary database instance.
  • Its equitable and replica of the primary database instance whose sole responsibility is to simply give information i.e., only read operations. There can be 15 replicas for a primary database instance to maintain high accessibility and availability in all the Zones. In a fail-safe condition, Aurora will switch to a replica when a Primary database is not available. Replicas help in reducing the read workload over primary database.
  • There can be a multi-master cluster likewise for Aurora. In multi-master replication, all the database instances would have a read and write capabilities. In AWS terminology they are known as reader and writer database instances.
  • The user can configure to keep a backup of its database on Amazon S3. This ensures the safety of the user's database even in the worst cases where the whole cluster is down.
  • For an unpredictable workload, user can use the Aurora Serverless to automatically start scaling and shut down the database to match application demand.

Understanding the Amazon RDS Shared Responsibility Model

In the Amazon RDS Shared Responsibility Model, AWS and the customer share duties to ensure the security, availability, and performance of database services. AWS manages the infrastructure, while customers take control of their data and database management.

AWS Responsibilities

  • Infrastructure and Hosting: AWS takes care of the foundational infrastructure for RDS, including data centers, hardware along with networking. AWS ensures the physical security of servers also network connectivity and operational aspects like power and cooling.
  • Database Software and Patching: AWS manages the installation, maintenance, and patching of the database engine. This includes automatic updates and bug fixes for supported versions of database engines, ensuring customers always operate on secure and stable software.
  • Backup and High Availability: AWS automates regular backups and offers features like Multi-AZ deployments, which provide failover support across availability zones to maintain uptime and minimize disruptions. AWS also manages storage scaling, data replication, and recovery processes.
  • Compliance and Security in the Cloud: AWS handles security at the infrastructure level by managing firewalls and supporting encryption both at rest and during transit. The company ensures compliance with global standards but customers must also ensure their use of AWS services aligns with applicable regulations.

Customer Responsibilities

  • Database Configuration and Tuning: Customers are tasked with configuring the database and setting parameters to optimize query performance. Tuning queries is essential for improving performance and users can leverage tools like Amazon RDS Performance Insights to identify potential bottlenecks.
  • Data Security and Access Control: Customers must encrypt any sensitive data stored in the database and manage user access using AWS IAM roles and policies. Effective permission management is essential to prevent unauthorized access to databases.
  • Monitoring and Query Performance: Customers are responsible for monitoring database activity and query performance. Using tools like RDS Performance Insights along with CloudWatch and CloudTrail they must consistently track queries and workloads to maintain efficient database operation and promptly resolve performance issues.

Aurora Vs RDS (MySQL/PostgreSQL)

Why choose Aurora over standard RDS?

FeatureAmazon AuroraStandard RDS (MySQL/PostgreSQL)
PerformanceUp to 5x faster (MySQL) / 3x faster (Postgres).Standard engine performance.
Storage ScalingAuto-scales up to 128 TB.Manual scaling (up to 64 TB).
Replication< 10ms lag (Shared Storage).Seconds/Minutes lag (Binlog replication).
Failover Time< 30 seconds.60-120 seconds.
ReplicasUp to 15.Up to 5.
Cost~20% higher per instance hour.Lower instance cost.

Amazon Aurora Pricing

Aurora Pricing

Aurora pricing has three main components:

1. Instance/Compute:

  • Provisioned: Hourly rate based on instance size.
  • Serverless: Per ACU-hour (billed per second).

2. Storage: Pay per GB-month for the data you store (auto-expanding).

3. I/O Rate:

  • Aurora Standard: Pay per million I/O requests. (Best for low-I/O apps).
  • Aurora I/O-Optimized: Higher storage/instance cost, but zero charges for I/O. (Best for I/O-intensive apps like payment processors).
Comment