Lambda best practices:
https://aws.amazon.com/blogs/compute/handling-billions-of-invocations-best-practices-from-aws-lambda/
🔸 Stateless functions: Ensure functions do not maintain state between invocations.
🔹 Service over custom code: Utilize AWS services instead of writing custom solutions.
🔸 Decouple components: Minimize dependencies between services to enhance scalability.
🔹 Idempotent operations: Design functions to handle repeated events safely.
🔸 On-demand processing: Process events as they occur, avoiding batch processing.
🔹 Use Step Functions: Consider Step Functions for complex workflows.
🔸 Multiple AWS accounts: Manage quotas and isolation by using separate accounts.
#Lambda
https://aws.amazon.com/blogs/compute/handling-billions-of-invocations-best-practices-from-aws-lambda/
🔸 Stateless functions: Ensure functions do not maintain state between invocations.
🔹 Service over custom code: Utilize AWS services instead of writing custom solutions.
🔸 Decouple components: Minimize dependencies between services to enhance scalability.
🔹 Idempotent operations: Design functions to handle repeated events safely.
🔸 On-demand processing: Process events as they occur, avoiding batch processing.
🔹 Use Step Functions: Consider Step Functions for complex workflows.
🔸 Multiple AWS accounts: Manage quotas and isolation by using separate accounts.
#Lambda
Amazon
Handling billions of invocations – best practices from AWS Lambda | Amazon Web Services
This post is written by Anton Aleksandrov, Principal Solution Architect, AWS Serverless and Rajesh Kumar Pandey, Principal Engineer, AWS Lambda AWS Lambda is a highly scalable and resilient serverless compute service. With over 1.5 million monthly active…
👍10
Вы уже переписали свои Лямбды на Rust? Нет? Тогда до августа у вас есть ещё время!
https://aws.amazon.com/blogs/compute/aws-lambda-standardizes-billing-for-init-phase/
TL;DR:
Раньше, и пока ещё, cold-start время не биллится (нахаляву). Поэтому можно былописать на Java и не париться не обращать внимания на эффективность кода Лямбд, который просто долго стартует.
Если у вас не было проблем с такими функциями, то ничего и не заметите.
Ежели заметите — стоит почитать про LLRT, оптимизацию производительности Lambda или наконец просто перейти на Step Functions. 😁
#Lambda
https://aws.amazon.com/blogs/compute/aws-lambda-standardizes-billing-for-init-phase/
Effective August 1, 2025, AWS will standardize billing for the initialization (INIT) phase across all AWS Lambda function configurations. This change specifically affects on-demand invocations of Lambda functions packaged as ZIP files that use managed runtimes, for which the INIT phase duration was previously unbilled.
TL;DR:
Раньше, и пока ещё, cold-start время не биллится (нахаляву). Поэтому можно было
Если у вас не было проблем с такими функциями, то ничего и не заметите.
Ежели заметите — стоит почитать про LLRT, оптимизацию производительности Lambda или наконец просто перейти на Step Functions. 😁
#Lambda
Amazon
AWS Lambda standardizes billing for INIT Phase | Amazon Web Services
Effective August 1, 2025, AWS will standardize billing for the initialization (INIT) phase across all AWS Lambda function configurations. This change specifically affects on-demand invocations of Lambda functions packaged as ZIP files that use managed runtimes…
🤔8😁3👍2
Логи Lambda теперь дешевле
https://aws.amazon.com/blogs/compute/aws-lambda-introduces-tiered-pricing-for-amazon-cloudwatch-logs-and-additional-logging-destinations/
Если у вас их было очень много (терабайты - но зачем?), то экономия существенная.
Возможность слать логи в S3 выглядит привлекательно, но как понимаю, это в довесок к CloudWatch, а не вместо — экономия лишь на хранении (а основной расход - ingestion).
#Lambda #CloudWatch #S3
https://aws.amazon.com/blogs/compute/aws-lambda-introduces-tiered-pricing-for-amazon-cloudwatch-logs-and-additional-logging-destinations/
Если у вас их было очень много (терабайты - но зачем?), то экономия существенная.
Возможность слать логи в S3 выглядит привлекательно, но как понимаю, это в довесок к CloudWatch, а не вместо — экономия лишь на хранении (а основной расход - ingestion).
#Lambda #CloudWatch #S3
Amazon
AWS Lambda introduces tiered pricing for Amazon CloudWatch logs and additional logging destinations | Amazon Web Services
Effective logging is an important part of an observability strategy when building serverless applications using AWS Lambda. Lambda automatically captures and sends logs to Amazon CloudWatch Logs. This allows you to focus on building application logic rather…
🍾2
Дебажим Lambda, запущенную в AWS, локально в VS Code: 🎉
https://aws.amazon.com/blogs/aws/simplify-serverless-development-with-console-to-ide-and-remote-debugging-for-aws-lambda/
#Lambda
https://aws.amazon.com/blogs/aws/simplify-serverless-development-with-console-to-ide-and-remote-debugging-for-aws-lambda/
#Lambda
🔥42👍6
Lambda + Rust 🎉
https://aws.amazon.com/blogs/compute/building-serverless-applications-with-rust-on-aws-lambda/
#Lambda
https://aws.amazon.com/blogs/compute/building-serverless-applications-with-rust-on-aws-lambda/
#Lambda
Amazon
Building serverless applications with Rust on AWS Lambda | Amazon Web Services
Today, AWS Lambda is promoting Rust support from Experimental to Generally Available. This means you can now use Rust to build business-critical serverless applications, backed by AWS Support and the Lambda availability SLA.
👍12👎2❤1🔥1🤣1💅1