Ojasa Mirai

Ojasa Mirai

Cloud

Loading...

Learning Level

🟢 Beginner🔵 Advanced
⚙️ Compute Services⚡ Serverless Functions🗄️ SQL Database Services📊 NoSQL Database Services📁 Storage Services🌐 Networking Services⚖️ Load Balancing Services🚀 CDN Services🔐 Security & Auth Services📊 Monitoring & Logging Services📬 Message Queue Services🔌 API Gateway Services🐳 Container Orchestration💾 Caching Services🌐 Domain & DNS Services💾 Backup & Recovery Services
Cloud/Cloud Concepts Comparison/Serverless Functions

⚡ Serverless Functions - Provider Comparison

Introduction

Serverless functions let you run code without managing servers. Pay only for execution time, with automatic scaling.

Quick Comparison

AspectAWS LambdaGCP Cloud FunctionsAzure FunctionsFirebase
Runtime15+ languagesNode, Python, Go, etcC#, Node, PythonNode, Python
Cold Start100-500ms50-200ms100-400ms50-200ms
Execution Time15 minutes9 minutes10 minutes9 minutes
Memory128MB-10GB256MB-8GB256MB-4GB256MB-2GB
Pricing$0.20 per 1M calls$0.40 per 1M calls$0.20 per 1M calls$0.40 per 1M calls

AWS Lambda

exports.handler = async (event) => {
  console.log('Event:', JSON.stringify(event, null, 2));
  
  return {
    statusCode: 200,
    body: JSON.stringify({ message: 'Hello from Lambda' })
  };
};

Strengths:

  • Largest ecosystem
  • 15+ supported runtimes
  • Extensive trigger options (100+)
  • Container image support

Pricing: $0.0000002 per invocation + $0.0000166667 per GB-second

GCP Cloud Functions

exports.helloWorld = (req, res) => {
  res.send('Hello from Cloud Functions!');
};

Strengths:

  • Simple deployment
  • Integrated with GCP services
  • Lower cold start
  • Fast iteration

Pricing: $0.40 per 1M calls + $0.0000041667 per GB-second

Azure Functions

module.exports = async function (context, req) {
  context.log('Function invoked');
  
  context.res = {
    body: 'Hello from Azure Functions'
  };
};

Strengths:

  • Azure ecosystem integration
  • C# support
  • Durable Functions for complex workflows
  • Flexible deployment options

Pricing: $0.20 per 1M calls + $0.000016 per GB-second

Firebase Cloud Functions

const functions = require('firebase-functions');

exports.helloWorld = functions.https.onRequest((req, res) => {
  res.send('Hello from Firebase!');
});

Strengths:

  • Tight Firebase integration
  • Automatic scaling
  • Real-time database triggers
  • Simple authentication

Pricing: $0.40 per 1M calls + compute time

Trigger Types

TriggerAWSGCPAzureFirebase
HTTP
Database
Storage
Message Queue
Scheduled
Custom Events

Key Takeaways

  • **Lambda:** Most powerful, most options
  • **Cloud Functions:** Simplest, lowest cold start
  • **Azure Functions:** Best for .NET, most flexible
  • **Firebase:** Best for Firebase apps
  • **Pricing similar:** Execution cost varies slightly
  • **Cold start matters:** For latency-sensitive apps
  • **Timeout limit:** 15min (Lambda) vs 9min (others)
  • **Cost optimization:** Use caching, minimize execution time

Resources

Python Docs

Ojasa Mirai

Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.

Learn Deep • Build Real • Verify Skills • Launch Forward

Courses

PythonFastapiReactJSCloud

© 2026 Ojasa Mirai. All rights reserved.

TwitterGitHubLinkedIn