
Cloud
Learning Level
Serverless functions let you run code without managing servers. Pay only for execution time, with automatic scaling.
| Aspect | AWS Lambda | GCP Cloud Functions | Azure Functions | Firebase |
|---|---|---|---|---|
| Runtime | 15+ languages | Node, Python, Go, etc | C#, Node, Python | Node, Python |
| Cold Start | 100-500ms | 50-200ms | 100-400ms | 50-200ms |
| Execution Time | 15 minutes | 9 minutes | 10 minutes | 9 minutes |
| Memory | 128MB-10GB | 256MB-8GB | 256MB-4GB | 256MB-2GB |
| Pricing | $0.20 per 1M calls | $0.40 per 1M calls | $0.20 per 1M calls | $0.40 per 1M calls |
exports.handler = async (event) => {
console.log('Event:', JSON.stringify(event, null, 2));
return {
statusCode: 200,
body: JSON.stringify({ message: 'Hello from Lambda' })
};
};Strengths:
Pricing: $0.0000002 per invocation + $0.0000166667 per GB-second
exports.helloWorld = (req, res) => {
res.send('Hello from Cloud Functions!');
};Strengths:
Pricing: $0.40 per 1M calls + $0.0000041667 per GB-second
module.exports = async function (context, req) {
context.log('Function invoked');
context.res = {
body: 'Hello from Azure Functions'
};
};Strengths:
Pricing: $0.20 per 1M calls + $0.000016 per GB-second
const functions = require('firebase-functions');
exports.helloWorld = functions.https.onRequest((req, res) => {
res.send('Hello from Firebase!');
});Strengths:
Pricing: $0.40 per 1M calls + compute time
| Trigger | AWS | GCP | Azure | Firebase |
|---|---|---|---|---|
| HTTP | ✓ | ✓ | ✓ | ✓ |
| Database | ✓ | ✓ | ✓ | ✓ |
| Storage | ✓ | ✓ | ✓ | ✓ |
| Message Queue | ✓ | ✓ | ✓ | ✗ |
| Scheduled | ✓ | ✓ | ✓ | ✓ |
| Custom Events | ✓ | ✓ | ✓ | ✓ |
Resources
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