aws-lambda-power-tuning
aws-cdk
Our great sponsors
aws-lambda-power-tuning | aws-cdk | |
---|---|---|
35 | 261 | |
5,071 | 11,059 | |
- | 1.4% | |
8.7 | 9.9 | |
7 days ago | 7 days ago | |
JavaScript | TypeScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
aws-lambda-power-tuning
-
AWS SnapStart - Part 13 Measuring warm starts with Java 21 using different Lambda memory settings
In case of not enabling SnapStart for the Lambda function we observed that increasing memory reduces the warm execution time for our use case especially for p>90. As adding more memory to the Lambda function is also a cost factor, the sweet spot between cold and warm start time and cost is somewhere between 768 and 1204 MB memory setting for the Lambda function for our use case. You can use AWS Lambda Power Tuning for very nice visualisations.
-
How to optimize your lambda functions with AWS Lambda power tuning
This tool, which is open source and available here, takes the form of a Step Function that is deployed on your AWS account. The purpose of this Step Function is to run your lambda with different memory configurations several times and output a comparison in the form of a graph (or JSON) to try to find the optimal balance between cost and execution time. There are three possible optimization modes: cost, execution time, or a "balanced" mode where it tries to find a balance between the two.
-
Developers Journey to AWS Lambda
The AWS Documentation's Memory and Computing Power page is a good starting point. To avoid configuring it manually, it's worth checking out AWS Lambda Power Tuning, which will help you find the sweet spot.
-
Guide to Serverless & Lambda Testing β Part 2 β Testing Pyramid
Utilizing tools such as AWS X-Ray, AWS Lambda Power Tuning, and AWS Lambda Powertools tracer utility is recommended. Read more about it here.
-
Tunea tus funciones Lambda
Install the AWS SAM CLI in your local environment. Configure your AWS credentials (requires AWS CLI installed): $ aws configure Clone this git repository: $ git clone https://github.com/alexcasalboni/aws-lambda-power-tuning.git Build the Lambda layer and any other dependencies (Docker is required): $ cd ./aws-lambda-power-tuning $ sam build -u sam build -u will run SAM build using a Docker container image that provides an environment similar to that which your function would run in. SAM build in-turn looks at your AWS SAM template file for information about Lambda functions and layers in this project. Once the build has completed you should see output that states Build Succeeded. If not there will be error messages providing guidance on what went wrong. Deploy the application using the SAM deploy "guided" mode: $ sam deploy -g
-
AWS Serverless Production Readiness Checklist
Use AWS Lambda Power Tuning to balance cost and performance.
-
GPT-Powered chatbot over the phone - Try it, and see how it was built
Since it relies on an external API call, it does take a while to execute (1.285 seconds on average), which is very inefficient, and despite throwing Lambda Power Tuning at the problem, it's purely an external dependency issue, and can't be resolved by resources. You could make it more cost-effective using AWS Step Functions to handle the OpenAI API call asyncrhonously, but I didn't worry for this project.
-
Tips to avoid surprises in your AWS bill
Optimise the memory settings for functions that use provisioned concurrency and adjust memory allocation for a function by using a tool like this to avoid guesswork.
-
Modern hardware is fast, so let's choose the slowest language to balance it out
Adding to this, increasing lambda size can actually reduce your spend on lambda depending on what you're actually running. And there's a tool to figure out what's optimal. https://github.com/alexcasalboni/aws-lambda-power-tuning
-
Optimize your workloads for Sustainability
Use tools like AWS lambda power tuning, and AWS Compute Optimizer to right-size your resources. In addition, you should use Auto Scaling to automatically scale up and down based on demand. To improve the overall resource efficiency and reduce idle capacity in the entire Cloud AWS, use Amazon EC2 Spot Instances. Spot Instances are unused EC2 capacity in AWS, this instance also gives you up to a 90% discount compared to On-Demand prices. If you are using EKS you should follow the EKS Best Practices Guides - especially the Auto Scaling guide to improve the utilization of your nodes. Moreover, you should generally adopt a serverless, event-driven architecture to maximize overall resource utilization.
aws-cdk
-
DevSecOps with AWS- IaC at scale - Building your own platform - Part 1
AWS Cloud Development Kit (CDK): is an open-source software development framework to define your cloud application resources using familiar programming languages.
-
Cloud, why so difficult? π€·ββοΈ
I am not one to build programming languages on a whim. In fact, I've spent the last five years building the AWS CDK, which is a multi-language library that addresses some of the challenges I am talking about by allowing developers to define cloud infrastructure using their favorite programming language.
-
Create a Next.js Server Component S3 Picture Uploader with SST
I recently started exploring SST as an alternative to my favorite full-stack set consisting of Projen, AWS CDK, and React. I have been thoroughly impressed with the experience so far. In this article, I will demonstrate how to create a Next.js App Router S3 Picture Uploader using SST.
-
Starting My AWS Certification Journey as a Certified Cloud Practitioner
AWS CDK
-
Building Serverless Applications On AWS: A Practical Guide To Managing Event Processing
Here is a github repository containing the code and instructions on how to automate this whole setup using AWS CDK.
-
How to Implement and Deploy a Smart Contract Event Listener with AWS CDK
Now that you have a working smart contract event listener, we'll deploy the resources to AWS using AWS CDK, which is an Infrastructure as Code (IaC) tool. AWS CDK allows you to configure, deploy, and manage AWS cloud resources using popular programming languages such as TypeScript.
-
The Ultimate Guide to Building Internal Tools in 2024
Amazon CDK is an excellent example of an internal tool (which theyβve since open-sourced) for defining resources for your cloud application using well-known programming languages.
-
What's Next for CDK? π
This is actually already available but is still an experimental feature so there are no guarantees about the outcome or stability of the functionality.
-
AWS Data Engineer Associate Certification - Coming Soon
Interestingly, AWS CDK and SAM are both explicitly mentioned. While CDK broadly addresses Infrastructure as Code, SAM is highlighted for its role in developing serverless data pipelines - a hugely underrated concept.
-
Infrastructure as Code: A Beginner's Guide
As organizations continue to embrace Infrastructure as Code (IAC) principles, the landscape of tools and frameworks to achieve this goal has expanded significantly. Among the prominent players in this arena are AWS CDK, Pulumi, and Terraform. Each of these tools brings its unique approach and features to the table, catering to the diverse needs of developers and operations teams. In this section, we will delve into a detailed comparison of these three tools, highlighting their strengths, weaknesses, and use cases.
What are some alternatives?
sst - Build modern full-stack applications on AWS
aws-cdk-local - Thin wrapper script for using the AWS CDK CLI with LocalStack
middy - π΅ The stylish Node.js middleware engine for AWS Lambda π΅
ts-node - TypeScript execution and REPL for node.js
diy-sveltekit-cdk-adapter - An exercise on deploying SvelteKit with CDK
SvelteKit - web development, streamlined
terraform-cdk - Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
cdk8s - Define Kubernetes native apps and abstractions using object-oriented programming
aws-lambda-rust-runtime - A Rust runtime for AWS Lambda
dagger - Application Delivery as Code that Runs Anywhere
terratest - Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
aws-cloudformation-coverage-roadmap - The AWS CloudFormation Public Coverage Roadmap