Softwr

Cloud · head to head

AWS (Amazon Web Services) vs AWS Lambda

AWS (Amazon Web Services) logo

AWS (Amazon Web Services)

Cloud

Cloud computing platform

From
Free
Free plan
Yes
AWS Lambda logo

AWS Lambda

Cloud

Run code without thinking about servers

From
Free
Free plan
Yes

The short version

  • AWS Lambda is a serverless compute service.
  • Both are free.
  • Only AWS (Amazon Web Services) lists EC2 - Virtual Servers; only AWS Lambda lists event-driven execution.
  • Where AWS (Amazon Web Services) falls short: data transfer in is free and data transfer out is charged, which is the standard source of unexpected bills.
  • Where AWS Lambda falls short: provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs.

How do AWS (Amazon Web Services) and AWS Lambda differ?

AWS (Amazon Web Services) and AWS Lambda differ on platforms and year founded (2006 against 2014). Only the attributes on which AWS (Amazon Web Services) and AWS Lambda actually diverge.

Attributes where AWS (Amazon Web Services) and AWS Lambda differ
AttributeAWS (Amazon Web Services)AWS Lambda
PlatformsWeb, API, iOS, AndroidWeb, API
Founded20062014

Identical on both: starting price (Free), pricing model (Usage-based), free tier (Yes), category (Cloud).

Which features does each one have?

They share no listed features; 20 appear only for AWS (Amazon Web Services) and 20 only for AWS Lambda. 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 AWS (Amazon Web Services)

  • EC2 - Virtual Servers
  • S3 - Object Storage
  • RDS - Managed Database
  • Lambda - Serverless Computing
  • CloudFront - CDN
  • VPC - Virtual Network
  • IAM - Access Management
  • CloudWatch - Monitoring

Only in AWS Lambda

  • Function-as-a-Service
  • Event-driven execution
  • Auto-scaling
  • Pay-per-use
  • Multiple languages
  • Concurrency limits
  • Dead Letter Queues
  • Environment variables

What is each one used for?

AWS (Amazon Web Services) is most often brought in for web hosting; AWS Lambda for event-driven functions without managing servers. The jobs each tool is most often brought in to do.

AWS (Amazon Web Services)

  • Web hostingnot AWS Lambda
  • Data storagenot AWS Lambda
  • Machine learningnot AWS Lambda
  • Big data analyticsnot AWS Lambda
  • Application developmentnot AWS Lambda

AWS Lambda

  • Event-driven functions without managing serversnot AWS (Amazon Web Services)
  • API backends behind API Gatewaynot AWS (Amazon Web Services)
  • Processing S3, DynamoDB, SQS and Kinesis eventsnot AWS (Amazon Web Services)
  • Scheduled jobs without a always-on instancenot AWS (Amazon Web Services)
  • Edge compute through Lambda@Edgenot AWS (Amazon Web Services)

Where do AWS (Amazon Web Services) and AWS Lambda fall short?

AWS (Amazon Web Services)'s most cited limit: data transfer in is free and data transfer out is charged, which is the standard source of unexpected bills. AWS Lambda's: ephemeral storage beyond the included 512 MB is metered. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS (Amazon Web Services)

  • Data transfer in is free and data transfer out is charged, which is the standard source of unexpected bills
  • Discounts require one or three year Savings Plan commitments rather than being automatic
  • Every service is priced separately, so a working architecture has no single published cost
  • The free tier is a promotional allowance rather than an ongoing free plan

AWS Lambda

  • Billed on two axes at once, $0.20 per million requests plus $0.0000166667 per GB-second of duration, so memory settings change the bill as much as traffic does
  • Provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs
  • Ephemeral storage beyond the included 512 MB is metered
  • Lambda@Edge costs $0.60 per million requests, three times the standard request rate
  • VPC use and cross-region data transfer carry EC2 charges on top

How much do AWS (Amazon Web Services) and AWS Lambda cost?

AWS (Amazon Web Services) is free to use; AWS Lambda is free to use. Plan by plan below, from each vendor's own pricing page.

AWS (Amazon Web Services)

Free
  • AWS Free TierFree
    • EC2 750 hours/month
    • 5GB S3 storage
    • 20GB data transfer
  • Pay-As-You-GoFree
    • No upfront payment
    • No long-term commitments
    • Pay only for what you use

AWS Lambda

Free
  • Free TierFree
    • 1M free requests/month
    • 400,000 GB-seconds/month
    • Always free

Which should you pick?

Choose AWS (Amazon Web Services) if

  • You need ec2 - virtual servers.
  • You want to start without paying.
  • You work on Web, API, iOS, Android.
  • You also want s3 - object storage.

Choose AWS Lambda if

  • You need function-as-a-service.
  • You want to start without paying.
  • You work on Web, API.
  • You also want event-driven execution.

Questions people ask

Is AWS (Amazon Web Services) or AWS Lambda better?
It depends on the job. AWS (Amazon Web Services) fits web hosting; AWS Lambda fits event-driven functions without managing servers. AWS (Amazon Web Services) starts at Free and AWS Lambda at Free.
Which is cheaper, AWS (Amazon Web Services) or AWS Lambda?
AWS (Amazon Web Services) starts at Free and AWS Lambda at Free.
Does AWS (Amazon Web Services) or AWS Lambda run on more platforms?
AWS (Amazon Web Services) runs on Web, API, iOS, Android. AWS Lambda runs on Web, API.
Can I use AWS (Amazon Web Services) for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS (Amazon Web Services) best used for?
AWS (Amazon Web Services) is most often used for web hosting, data storage, machine learning, big data analytics. Of those, web hosting and data storage are not what AWS Lambda is typically brought in for.
What can AWS (Amazon Web Services) do that AWS Lambda cannot?
AWS (Amazon Web Services) covers EC2 - Virtual Servers, S3 - Object Storage, RDS - Managed Database, Lambda - Serverless Computing. AWS Lambda covers Function-as-a-Service, Event-driven execution, Auto-scaling, Pay-per-use.

Answered from the vendors’ own pages

AWS (Amazon Web Services): What are AWS's payment options and pricing models?

AWS offers four pricing approaches: pay-as-you-go (you pay only for what you use), flat-rate plans combining multiple services into one monthly price without overages, Savings Plans offering discounts on compute and machine learning with 1- or 3-year commitments, and volume-based tiered pricing where costs decrease as usage increases.

Source
AWS Lambda: Is there a free tier for AWS Lambda?

Yes. AWS Lambda offers a free tier including 1 million requests per month, 400,000 GB-seconds per month, and 100 GB monthly response streaming.

Source
AWS (Amazon Web Services): Are there contracts, termination fees, or commitments required for AWS?

No long-term contracts are required for AWS services. No termination fees apply once you stop using the service. Savings Plans provide optional 1- or 3-year commitments with discounted hourly rates, but you can revert to pay-as-you-go pricing anytime.

Source
AWS Lambda: How is AWS Lambda charged?

Lambda charges $0.20 per million requests. Duration charges are $0.0000166667 per GB-second for x86 (up to 6 billion GB-seconds/month in US East Ohio with tiered pricing). Ephemeral storage over the included 512 MB costs $0.0000000309 per GB-second. Provisioned Concurrency costs $0.0000041667 per GB-second with a 5-minute minimum.

Source
AWS (Amazon Web Services): Does AWS offer a free tier?

AWS provides a free tier that offers hands-on experience with AWS products at no charge. The free tier allows new customers to try eligible services before committing to paid usage.

Source
AWS Lambda: What are Lambda Durable Functions pricing?

Lambda Durable Functions include operations at $8.00 per million (start execution, steps, waits). Data written costs $0.25 per GB. Data retention is $0.15 per GB-month with configurable 1-90 day retention (default 14 days).

Source
AWS (Amazon Web Services): How do I estimate my AWS costs?

AWS provides the AWS Pricing Calculator and Cost Explorer tool to estimate costs for single or multiple services. AWS also offers cost optimization recommendations, performance reporting, and budget alerts to help track and control spending.

Source
Share

Related pages

Other head to heads