Softwr

Databases · head to head

Amazon Aurora vs AWS Serverless Application Model (AWS SAM)

Amazon Aurora logo

Amazon Aurora

Databases

MySQL and PostgreSQL-compatible relational database built for the cloud

From
Free
Free plan
Yes
AWS Serverless Application Model (AWS SAM) logo

AWS Serverless Application Model (AWS SAM)

Developer Tools

Open-source framework and CLI for building serverless apps on AWS

From
Free
Free plan
Yes

The short version

  • Amazon Aurora is a MySQL and PostgreSQL-compatible relational database.
  • AWS Serverless Application Model (AWS SAM) is free; Amazon Aurora starts at $0.12/mo.
  • Only Amazon Aurora lists MySQL/PostgreSQL Compatible; only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions.
  • Where Amazon Aurora falls short: aurora requires AWS ecosystem knowledge and integration with other AWS services.
  • Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.

How do Amazon Aurora and AWS Serverless Application Model (AWS SAM) differ?

Amazon Aurora and AWS Serverless Application Model (AWS SAM) differ on pricing model (Usage-based against Open-source), platforms and category (Databases against Developer Tools). Only the attributes on which Amazon Aurora and AWS Serverless Application Model (AWS SAM) actually diverge.

Attributes where Amazon Aurora and AWS Serverless Application Model (AWS SAM) differ
AttributeAmazon AuroraAWS Serverless Application Model (AWS SAM)
Pricing modelUsage-basedOpen-source
PlatformsWebWindows, macOS, Linux
CategoryDatabasesDeveloper Tools

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for AWS Serverless Application Model (AWS SAM).

Which features does each one have?

They share no listed features; 14 appear only for Amazon Aurora and 7 only for AWS Serverless Application Model (AWS SAM). Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Amazon Aurora

  • MySQL/PostgreSQL Compatible
  • 5x MySQL Performance
  • Auto-scaling Storage
  • Global Database
  • Serverless v2
  • Multi-master
  • Fault Tolerant
  • AWS Lambda

Only in AWS Serverless Application Model (AWS SAM)

  • SAM template shorthand for CloudFormation
  • SAM CLI project scaffolding with sam init
  • Local testing of Lambda functions and API endpoints
  • sam sync for syncing local changes to the cloud
  • SAM connectors for IAM permissions
  • Terraform project debugging support
  • CI/CD pipeline support

What is each one used for?

Amazon Aurora is most often brought in for transaction processing; AWS Serverless Application Model (AWS SAM) for defining Lambda and API Gateway applications as code. The jobs each tool is most often brought in to do.

Amazon Aurora

  • Transaction processingnot AWS Serverless Application Model (AWS SAM)
  • Data storagenot AWS Serverless Application Model (AWS SAM)
  • Application backendnot AWS Serverless Application Model (AWS SAM)
  • Reportingnot AWS Serverless Application Model (AWS SAM)
  • Data analyticsnot AWS Serverless Application Model (AWS SAM)

AWS Serverless Application Model (AWS SAM)

  • Defining Lambda and API Gateway applications as codenot Amazon Aurora
  • Testing Lambda functions locally before deploymentnot Amazon Aurora
  • Building CI/CD pipelines for serverless appsnot Amazon Aurora
  • Converting console-created resources into templatesnot Amazon Aurora

Where do Amazon Aurora and AWS Serverless Application Model (AWS SAM) fall short?

Amazon Aurora's most cited limit: aurora requires AWS ecosystem knowledge and integration with other AWS services. AWS Serverless Application Model (AWS SAM)'s: targets AWS only, so templates are not portable to other cloud providers. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon Aurora

  • Aurora requires AWS ecosystem knowledge and integration with other AWS services
  • Pricing can become expensive with high-traffic applications using many read replicas
  • Limited support for non-relational data types compared to NoSQL alternatives

AWS Serverless Application Model (AWS SAM)

  • Targets AWS only, so templates are not portable to other cloud providers
  • Local testing of functions depends on Docker being installed and running
  • Requires an AWS account, the AWS CLI and configured credentials before first use
  • Declarative templates, so complex logic needs CloudFormation or the AWS CDK instead
  • Does not cover non-serverless infrastructure on its own, which falls back to CloudFormation

How much do Amazon Aurora and AWS Serverless Application Model (AWS SAM) cost?

Amazon Aurora has a free plan, with paid plans from $0.12/mo; AWS Serverless Application Model (AWS SAM) is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon Aurora

Free
  • Serverless v2$0.12/hour
    • Auto-scaling
    • Pay per ACU
    • Instant scaling
  • Provisioned$29/mo
    • Dedicated instances
    • Predictable performance
    • Reserved capacity

AWS Serverless Application Model (AWS SAM)

Free

No published plan breakdown. See the AWS Serverless Application Model (AWS SAM) review.

Which should you pick?

Choose Amazon Aurora if

  • You need mysql/postgresql compatible.
  • You want to start without paying.
  • You also want 5x mysql performance.

Choose AWS Serverless Application Model (AWS SAM) if

  • You need sam template shorthand for cloudformation.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want sam cli project scaffolding with sam init.

Questions people ask

Is Amazon Aurora or AWS Serverless Application Model (AWS SAM) better?
It depends on the job. Amazon Aurora fits transaction processing; AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code. Amazon Aurora starts at Free and AWS Serverless Application Model (AWS SAM) at Free.
Which is cheaper, Amazon Aurora or AWS Serverless Application Model (AWS SAM)?
Amazon Aurora starts at Free and AWS Serverless Application Model (AWS SAM) at Free.
Does Amazon Aurora or AWS Serverless Application Model (AWS SAM) run on more platforms?
Amazon Aurora runs on Web. AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux.
Can I use Amazon Aurora for free?
Both have a free tier, so you can try either at no cost before committing.
What is Amazon Aurora best used for?
Amazon Aurora is most often used for transaction processing, data storage, application backend, reporting. Of those, transaction processing and data storage are not what AWS Serverless Application Model (AWS SAM) is typically brought in for.
What can Amazon Aurora do that AWS Serverless Application Model (AWS SAM) cannot?
Amazon Aurora covers MySQL/PostgreSQL Compatible, 5x MySQL Performance, Auto-scaling Storage, Global Database. AWS Serverless Application Model (AWS SAM) covers SAM template shorthand for CloudFormation, SAM CLI project scaffolding with sam init, Local testing of Lambda functions and API endpoints, sam sync for syncing local changes to the cloud.

Answered from the vendors’ own pages

Amazon Aurora: Is Amazon Aurora compatible with MySQL and PostgreSQL?

Yes, Amazon Aurora offers MySQL and PostgreSQL compatibility with full compatibility to their open-source counterparts, allowing you to migrate existing databases with standard tools.

Source
AWS Serverless Application Model (AWS SAM): What is AWS SAM?

AWS SAM is an open-source framework for building serverless applications with infrastructure as code. It consists of a template syntax that extends CloudFormation and a command-line tool.

Source
Amazon Aurora: What uptime SLA does Amazon Aurora provide?

Aurora is designed for up to 99.99% single-region uptime and 99.999% multi-region uptime with automatic failover.

Source
AWS Serverless Application Model (AWS SAM): Which operating systems does the SAM CLI support?

AWS publishes installers for Linux on x86_64 and arm64, macOS on Intel and Apple silicon, and a 64-bit Windows MSI. macOS versions older than 13.x are not supported.

Source
Amazon Aurora: How much does Amazon Aurora cost?

Aurora uses serverless, usage-based pricing where you pay only for consumed capacity. Typical pricing ranges from $50-70 per month for minimal setups to $400-600 per month for small production clusters.

Source
AWS Serverless Application Model (AWS SAM): What licence does AWS SAM use?

The serverless-application-model repository on GitHub is licensed under Apache-2.0.

Source
Amazon Aurora: Can Amazon Aurora scale automatically?

Yes, Aurora automatically scales to match workload demands without performance degradation, supporting both read and write scaling.

Source
AWS Serverless Application Model (AWS SAM): How does SAM differ from the AWS CDK?

The documentation says to use SAM instead of the CDK if you prefer a declarative approach to describing infrastructure rather than a programmatic one. The two can also be combined, using the SAM CLI's local testing with CDK applications.

Source
Amazon Aurora: How many read replicas does Aurora support?

Aurora supports up to 15 low-latency read replicas for distributing read traffic across your application.

Source
Share

Related pages

Other head to heads