Compute

Lambda vs Azure Functions vs Cloud Functions — Serverless Compared

Compare AWS Lambda, Azure Functions, and Google Cloud Functions for serverless computing. Pricing, limits, and use cases.

Feature Comparison

FeatureAWS LambdaAzure FunctionsGoogle Cloud Functions
Free tier1M requests/mo1M requests/mo2M invocations/mo
Max timeout15 minutesUnlimited (Premium)60 minutes (2nd gen)
Concurrency1 per instanceConfigurableUp to 1000 (2nd gen)
Container supportYes (up to 10GB)YesYes (2nd gen via Cloud Run)
Stateful workflowsStep Functions (separate)Durable Functions (built-in)Workflows (separate)

Service Details

AWS Lambda

AWS

The original serverless compute platform. Deepest AWS integration, largest runtime selection, and the most mature event source ecosystem.

$0.20 per 1M requests + $0.0000166667/GB-second. 1M free requests/month. ARM (Graviton) pricing 20% cheaper.
Strengths
  • Most event sources (200+)
  • SnapStart for Java cold starts
  • Graviton2 ARM support (20% cheaper)
  • Container image support (up to 10GB)
Limitations
  • 15-minute execution limit
  • Cold starts for VPC-attached functions
  • Pricing complexity at scale

Azure Functions

Azure

Microsoft's serverless platform with flexible hosting options. Unique Durable Functions for stateful orchestration and long-running workflows.

Consumption plan: $0.20 per 1M executions + $0.000016/GB-second. Also offers Premium and Dedicated (App Service) plans.
Strengths
  • Durable Functions for stateful orchestration
  • Multiple hosting plans (consumption, premium, dedicated)
  • Strong .NET integration
  • No execution time limit on Premium plan
Limitations
  • Cold starts on Consumption plan
  • Linux support less mature than Windows
  • Fewer event sources than Lambda

Google Cloud Functions

GCP

GCP's serverless compute with 2nd gen (Cloud Run-based) offering improved concurrency and longer timeouts.

$0.40 per 1M invocations + $0.0000025/GHz-second CPU + $0.0000025/GB-second memory. 2M free invocations/month.
Strengths
  • 2nd gen runs on Cloud Run (full concurrency)
  • Generous free tier (2M invocations)
  • Simple, clean developer experience
  • Up to 60-minute timeout (2nd gen)
Limitations
  • Smaller ecosystem than Lambda
  • Fewer supported runtimes
  • Less mature monitoring/tracing

When to Use Which

Choose Lambda for the broadest ecosystem and deepest AWS integration. Choose Azure Functions for .NET workloads and Durable Functions orchestration. Choose Cloud Functions 2nd gen for the best concurrency model and generous free tier.

Serverless costs can be surprising at scale. CloudExpat analyzes your function invocations, memory allocation, and execution patterns to find optimization opportunities — often reducing serverless costs by 30-50% through right-sizing memory and optimizing cold starts.

Optimize Your Cloud Costs Across All Providers

CloudExpat works with AWS, Azure, and GCP. Connect in 30 seconds and see where you're overspending.