Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Serverless Compute Cheat Sheet

Serverless Compute Cheat Sheet

Back to Cloud Computing
Updated 2026-05-25
Next Topic: Supabase Cheat Sheet

Serverless compute is a cloud execution model where infrastructure management is abstracted away, allowing developers to deploy code that runs in response to events with automatic scaling and pay-per-use billing. The three major providers—AWS Lambda, Azure Functions, and Google Cloud Functions—each offer distinct runtime support, pricing structures, and integration ecosystems, while sharing challenges like cold starts and execution time limits. Since late 2024 and into 2026, the landscape has shifted significantly: Lambda SnapStart now covers Python 3.12+ and .NET 8+ (reducing cold starts to sub-second), Lambda Durable Functions provides code-first multi-step workflows up to one year, Lambda Managed Instances extends the serverless model to EC2 hardware, and a key INIT phase billing change effective August 2025 means optimizing initialization is now directly tied to your compute bill. Understanding the nuances of concurrency models, deployment strategies, and observability patterns is critical: a function that cold-starts in 2 seconds might be fine for batch processing but unacceptable for user-facing APIs, and arm64 (Graviton) delivers 17–25% faster cold starts across every runtime at 20% lower cost than x86.

What This Cheat Sheet Covers

This topic spans 17 focused tables and 153 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Execution ModelsTable 2: Platform Feature ComparisonTable 3: Cold Start Mitigation TechniquesTable 4: Concurrency and Scaling PatternsTable 5: Runtime and Language SupportTable 6: Pricing and Cost ModelsTable 7: Deployment and Packaging MethodsTable 8: Event Sources and TriggersTable 9: Observability and Debugging ToolsTable 10: Workflow Orchestration PatternsTable 11: Performance Optimization TechniquesTable 12: Security and Access ControlTable 13: API Gateway Patterns and ConfigurationTable 14: Error Handling and Resilience PatternsTable 15: Deployment Strategies and VersioningTable 16: Advanced Serverless PatternsTable 17: Common Serverless Anti-Patterns

Table 1: Execution Models

Serverless functions are not monolithic—they differ radically based on how they're invoked. Choosing the wrong invocation model leads to unexpected costs, silent failures, and timeout surprises; understanding each model's guarantees, retry behavior, and payload limits is the first step toward reliable serverless design.

ModelExampleDescription
Synchronous Invocation
aws lambda invoke --function-name MyFunc
--payload '{"key":"value"}'
• Caller waits for response
• used for API Gateway, ALB, and direct SDK invocations
• 6 MB request/response limit (200 MB with streaming)
• timeout up to 15 minutes for Lambda, 60 minutes for Cloud Run.
Asynchronous Invocation
aws lambda invoke --invocation-type Event
--function-name MyFunc
• Lambda queues request and returns immediately
• automatic retry up to 2 times
• 1 MB max payload (increased from 256 KB in Q1 2026)
• supports destination routing for success/failure.
Lambda Function URL
curl https://<url-id>.lambda-url.us-east-1.on.aws/
— direct HTTPS endpoint, no API Gateway
• Built-in HTTPS endpoint without API Gateway cost
• supports IAM auth or public access (AuthType NONE)
• supports response streaming and CORS
• no additional charge beyond standard Lambda invocation pricing.
Event Stream Polling
Lambda polls SQS queue every 1–20 seconds;
processes batch of 1–10 messages
• Lambda pulls events from SQS, Kinesis, DynamoDB Streams, Kafka
• configurable batch size and window
• built-in partial failure handling
• Provisioned Mode available for Kafka sources.

More in Cloud Computing

  • Serverless Architecture Cheat Sheet
  • Supabase Cheat Sheet
  • AI Agent Mesh and Agentic Cloud Infrastructure Cheat Sheet
  • Cloud Auto-Scaling Cheat Sheet
  • Cloud Message Queues and Event-Driven Architecture Cheat Sheet
  • FinOps (Financial Operations for Cloud) Cheat Sheet
View all 57 topics in Cloud Computing