Amazon Aurora Serverless
Cloud service · AWS · Updated

Amazon Aurora Serverless

In short

Amazon Aurora Serverless is an on-demand, auto-scaling configuration for the Amazon Aurora database that automatically adjusts computing resources based on application demand, optimizing both performance and cost.

Cloud Services Hub →

Free Amazon Aurora Serverless tools

12 key features of Amazon Aurora Serverless

Amazon Aurora Serverless provides on-demand autoscaling, a pay-per-use cost model, seamless capacity management, high availability, compatibility with MySQL and PostgreSQL, instant scaling for peak loads, automatic pausing/resuming, AWS integration, enhanced security, and ease of setup and management.

01
On-Demand Autoscaling

Amazon Aurora Serverless automatically adjusts its compute capacity in response to the workload by scaling the database instance up or down based on actual usage, ensuring efficient resource utilization.

02
Pay-Per-Use Model

With Amazon Aurora Serverless, users pay only for the database resources they consume on a per-second basis, making it cost-effective for intermittent or unpredictable workloads.

03
Seamless Database Capacity Management

The service simplifies database capacity planning by managing the scaling process transparently, which eliminates the need for manual intervention when capacity changes are required.

04
High Availability and Durability

Amazon Aurora Serverless offers built-in fault tolerance and self-healing storage that replicates data across multiple Availability Zones, ensuring high availability and data durability.

05
Compatible with MySQL and PostgreSQL

Amazon Aurora Serverless is fully compatible with MySQL and PostgreSQL, allowing for easy migration and use of existing tools and applications.

06
Instant Scaling for Peak Loads

The service can scale database capacity in a matter of seconds to accommodate sudden spikes in workload, ensuring consistent performance during peak times.

07
Automatic Pausing and Resuming

During periods of inactivity, Amazon Aurora Serverless can automatically pause the database to save costs and then resume it when the activity picks up again.

08
Integrated with AWS Services

Amazon Aurora Serverless integrates with other AWS services, offering a more comprehensive and secure environment for applications.

09
Enhanced Security

The service provides multiple layers of security, including network isolation using Amazon VPC, encryption at rest using AWS Key Management Service, and encryption in transit with SSL.

10
Easy to Set Up and Manage

Amazon Aurora Serverless simplifies database setup and management, freeing developers from time-consuming database administration tasks.

11
Aurora Global Database Support

Aurora Serverless supports Aurora Global Database.

12
RDS Proxy Support

Aurora Serverless supports RDS Proxy.

Where Amazon Aurora Serverless is used

Amazon Aurora Serverless is ideal for on-demand applications, development and testing environments, handling unexpected workloads, simplifying database operations, and supporting microservices architectures by offering automatic scaling, cost savings, and reduced operational management.

  1. 01
    On-Demand Applications

    Aurora Serverless is perfect for applications with inconsistent or cyclical workloads. It automatically scales the database’s compute capacity up or down based on the application's needs, optimizing for times when the workload is low and scaling up during periods of high demand. This can result in cost savings and eliminates the complexity of capacity planning.

  2. 02
    Development and Testing Environments

    Developers can leverage Aurora Serverless for their dev/test environments to take advantage of the flexible nature of serverless databases. Since these environments are not used 24/7, using Aurora Serverless can be cost-effective, as you only pay for what you use, and the database shuts down during periods of inactivity.

  3. 03
    Unexpected Workloads

    For businesses that encounter unanticipated surges in traffic, Aurora Serverless can be a lifesaver by automatically scaling to accommodate the increased load. This prevents the application from going down due to capacity issues, ensures a good user experience, and avoids the need for costly over-provisioning.

  4. 04
    Simplifying Database Operations

    Companies seeking to minimize database operational management can use Aurora Serverless. Since it manages the underlying infrastructure, deployment, patching, and backups are all automated, freeing up valuable time and resources for developers and IT teams.

  5. 05
    Microservices Architectures

    For microservices-based architectures where each microservice requires its own database, Aurora Serverless is ideal. It provides independent scaling for each microservice’s database layer, ensuring isolation and fine-grained resource control, which is often necessary in such architectures.

How Amazon Aurora Serverless is priced

Amazon Aurora Serverless pricing includes pay-per-use ACU consumption, auto-scaling costs, data transfer fees, storage and I/O charges, and fees for additional backups and snapshots.

Pay-per-Use Based on ACU Consumption

You are billed based on the number of Aurora Capacity Units (ACUs) that your database consumes per second, in one-second increments, with no minimum usage commitments.

Auto-scaling Costs

The cost automatically adjusts according to the actual usage up to the maximum limit you set, providing a cost-effective solution for unpredictable workloads.

Data Transfer Fees

Data transfer into Aurora Serverless from the internet is free. Internet data transfer out is charged beyond the first 100 GB per month, aggregated across eligible AWS services and Regions.

Storage and I/O Fees

You also pay for the storage your database consumes and, with Aurora Standard, the I/Os your database operations perform, which are billed on a per GB and per million request basis respectively. Aurora I/O-Optimized does not charge separately for I/O requests.

Backup and Snapshot Fees

Backup storage, including automated backups and manual snapshots, is free up to 100% of database storage. Backup storage exceeding the free allowance is charged.

Services Amazon Aurora Serverless works with

AWS LambdaAWS Lambda

Amazon Aurora Serverless can work together with AWS Lambda to create serverless applications that automatically scale based on demand. AWS Lambda can be used to trigger functions in response to database events in Aurora, enabling seamless data-driven automation.

Amazon AthenaAmazon Athena

Aurora Serverless databases can be queried through Athena federated query connectors for MySQL or PostgreSQL. This lets you join database records with data in Amazon S3 without first copying the entire database into a data lake.

Amazon AuroraAmazon Aurora

Aurora Serverless v2 instances run within Aurora DB clusters and share their distributed storage, backups, and replication features. A cluster can mix serverless and provisioned instances, allowing a serverless reader to be promoted to writer during a migration.

Amazon Bedrock

Aurora Serverless v2 PostgreSQL can store embeddings and document metadata for Amazon Bedrock Knowledge Bases using the pgvector extension. Bedrock retrieves relevant records from the database to ground generated answers.

Amazon CloudWatchAmazon CloudWatch

Aurora Serverless publishes database and capacity metrics to CloudWatch, including capacity utilization and current Aurora Capacity Units. You can create alarms, export supported database logs to CloudWatch Logs, and use Database Insights with supported Serverless v2 configurations.

Amazon Data FirehoseAmazon Data Firehose

Supported Aurora Serverless v2 PostgreSQL databases can serve as database sources for Data Firehose. Firehose captures database changes and delivers them into Apache Iceberg tables in Amazon S3.

Amazon DevOps GuruAmazon DevOps Guru

Aurora Serverless v2 databases can be analyzed by DevOps Guru for RDS using Performance Insights data. It detects unusual database behavior and provides findings that help investigate problems such as increased query latency.

Amazon EC2Amazon EC2

Aurora Serverless v2 supports the RDS connection-setup feature for EC2 instances. The feature configures security groups so a selected EC2 instance can connect to the database.

Amazon EventBridgeAmazon EventBridge

Aurora Serverless sends supported RDS resource events to EventBridge. Rules can route events such as cluster failovers or configuration changes to automation and notification targets.

Amazon GuardDutyAmazon GuardDuty

Aurora Serverless v2 databases can be protected by GuardDuty RDS Protection on supported engine versions. GuardDuty analyzes database login activity to detect suspicious access, including anomalous authentication behavior.

What is Amazon Aurora Serverless

3 min read

Amazon Aurora Serverless is a fully managed, auto-scaling configuration of the Amazon Aurora database that automatically adjusts computing capacity based on the application's actual needs. Aurora is much like other database engines but with significant differences in performance, scalability, and availability due to its integration with the Amazon Web Services (AWS) infrastructure. 

Aurora Serverless v2 supports the Aurora I/O-Optimized cluster configuration for I/O-intensive applications, as an alternative to Aurora Standard.

The serverless aspect of Aurora allows users to create a database without the hassle of managing complex and time-consuming administrative tasks such as hardware provisioning, software patching, setup, configuration, or backups. Instead, Aurora Serverless handles these operations behind the scenes, offering a seamless experience for the developer or database administrator. 

One of the core benefits of Aurora Serverless is its ability to automatically start-up, shut down, and scale the database capacity with the flow of the application traffic. This is a significant advantage for workloads that have unpredictable or variable database usage patterns. For example, a database that serves backend services for a retail application might need to scale up during busy shopping periods and scale down overnight or during quieter periods to save costs. By automatically adjusting compute capacity in real time, without any disruption to client connections or application performance, Aurora Serverless ensures users pay only for the database resources they actually use. 

Aurora Serverless v2 scales within a capacity range you specify, supporting up to 256 Aurora Capacity Units (ACUs) for Aurora MySQL and 384 ACUs for Aurora PostgreSQL. The available range depends on the engine and platform versions, with supported versions allowing a minimum of 0 ACUs. Each ACU combines approximately 2 GiB of memory with corresponding CPU and networking.

Aurora clusters can combine provisioned and serverless instances in a mixed configuration, including by adding serverless instances to an existing provisioned cluster.

The capacity range is configured at the cluster level and applies to every serverless writer and reader, but each instance has its own capacity within that range.

The default max_connections setting is calculated using the memory associated with maximum configured ACUs rather than current capacity. Changing the maximum capacity requires rebooting the serverless instances to update this static parameter.

Capacity-range changes take effect immediately, even if you select the next scheduled maintenance window.

To maintain high availability and durability, Aurora Serverless spreads data across multiple AWS Availability Zones - independent infrastructure in separate geographic locations. Data is replicated six times across three availability zones, ensuring that the loss of a single instance or even an entire data center, does not lead to data loss or downtime. 

Despite the 'serverless' name, there are indeed servers in the background; the serverless aspect refers to the abstraction for the user. Developers can simply interact with the database endpoint, and the service manages the compute resources. This means that tasks such as capacity planning, which would typically require precise prediction and careful resource allocation considerations, are handled automatically and optimized to match real-time demand. 

Aurora Serverless integrates with AWS services like AWS Lambda, permitting users to trigger functions in response to database events, thus creating a reactive, event-driven architectural pattern. It also supports industry-standard SQL, making it compatible with existing applications and tools. Security in Aurora Serverless is not an afterthought. The service includes network isolation using Amazon VPC, encryption at rest using AWS Key Management Service (KMS), and encryption in transit with SSL. Access management is handled through AWS Identity and Access Management (IAM) roles and policies, while security patches are applied automatically. 

In essence, Amazon Aurora Serverless brings forth an efficient, cost-effective, highly available, and secure database solution ideal for many types of applications, especially those with variable workloads and the need for simplifying operations. It provides the performance and availability of high-end commercial databases with the simplicity and cost-effectiveness of open-source databases, all while leveraging the advantages of the AWS cloud infrastructure.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.