OpsCanary
Learn/AWS/Lambda & Serverless
AWS

Lambda & Serverless

4 articles from official documentation

Practitioner4 articles
awslambdaPractitioner

Mastering Lambda Function URLs: The Key to Simplified HTTP Access

Lambda function URLs provide a dedicated HTTP(S) endpoint for your Lambda functions, streamlining invocation. With automatic CORS header handling, they simplify cross-origin requests. Dive in to discover how to leverage this powerful feature effectively.

  • Create a function URL using the AWS CLI with the command: `aws lambda create-function-url-config`.
  • Set the authentication type to AWS_IAM or NONE based on your security requirements.
5 min read·AWS Docs
Read article
awslambdaPractitioner

Mastering Lambda Function Scaling and Concurrency

Scaling AWS Lambda functions can be a game-changer for your applications, but understanding concurrency is crucial. Learn how to calculate concurrency based on request rates and durations to optimize performance effectively.

  • Understand concurrency as the number of in-flight requests your Lambda function handles.
  • Calculate concurrency using the formula: Concurrency = (average requests per second) * (average request duration in seconds).
5 min read·AWS Docs
Read article
awslambdaPractitioner

Boosting Lambda Startup Times with SnapStart

Lambda SnapStart can reduce your function's cold start times to sub-second levels by caching the initialized execution environment. This feature is a game changer for performance-sensitive applications. Dive in to learn how it works and what you need to watch out for.

  • Leverage SnapStart to achieve sub-second startup times for your Lambda functions.
  • Understand that SnapStart uses Firecracker microVM snapshots to cache execution environments.
5 min read·AWS Docs
Read article
awslambdaPractitioner

Mastering the Lambda Execution Environment Lifecycle

Understanding the Lambda execution environment lifecycle is crucial for optimizing your serverless applications. The Init phase kicks off with starting extensions and bootstrapping the runtime, which can significantly affect performance. Dive in to learn how this impacts your function invocations.

  • Understand the Init phase: it starts extensions, bootstraps the runtime, and runs static code.
  • Monitor the Invoke phase: it sends events to the runtime and extensions for each invocation.
5 min read·AWS Docs
Read article