dazn-lambda-powertools
powertools-lambda
dazn-lambda-powertools | powertools-lambda | |
---|---|---|
4 | 5 | |
732 | 72 | |
0.3% | - | |
0.0 | 2.8 | |
10 months ago | 5 months ago | |
JavaScript | ||
MIT License | MIT No Attribution |
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.
dazn-lambda-powertools
-
First Look at Lambda Powertools TypeScript
I'm a big fan of TypeScript and in fact co-authored a book about it. I don't find myself using Java or Python much, so while I've been interested in Lambda Powertools, I never tried it out until now. Lambda Powertools TypeScript joins middy and DAZN Lambda Powertools in the Lambda tooling space for the Node.js runtime. Two things that differentiate Lambda Powertools TypeScript from comparable libraries are it is sponsored by AWS and it supports decorators.
-
Test Drive AWS Lambda Powertools for Typescript
The next natural step was to look at middleware such as Middy to decorate the main business logic, and allow these tasks to be defined once and used consistently. I remember listening to a Comic Relief talk about their Lambda wrapper back in 2019. Since then, I was introduced by Yan Cui to DAZN Lambda Powertools, which was the inspiration for this new project.
-
AWS Lambda logging best practices
You might be interested in the logger/correlation ID features of https://github.com/getndazn/dazn-lambda-powertools - been super useful for us so far.
-
Keep your CloudWatch bill under control when running AWS Lambda at scale
Nevertheless, log files are an important resource to debug problems and to get deeper insights into the behavior of a serverless system. Every logged detail might help to identify issues and to fix bugs and problems. Structured logging is important as log files can be analyzed much easier (e.g. with AWS CloudWatch Insights) which will save time and engineering costs. The dazn-lambda-powertools library provides a logger that supports structured logging for Node.js, the AWS Lambda Powertools offer the same for Python and Java.
powertools-lambda
-
Lambda Powertools TypeScript is Generally Available
One final thing to consider when deciding whether to adopt Lambda Powertools is what features may be in store in the future. The more mature libraries Lambda Powertools Python and Lambda Powertools Java include a number of useful utilities that we may like to see in Lambda Powertools TypeScript. The overall Lambda Powertools Roadmap doesn't tell us very much other than pending dotnet and golang libraries, but we can drill down into TypeScript-specific issues and glimpse the immediate future. It looks like stability is still the main priority, but there are some interesting items like RFC: Testing Factories for AWS Data Objects in the leftmost column.
-
First Look at Lambda Powertools TypeScript
I eagerly await the general availability of this library and will follow the roadmap to see what's coming up and how I can get involved.
-
Add AWS Powertools
According to Roadmap there is some work on .Net support. Hopefully we will see it soon. Personally, I would like to see nodejs and golang support too.
-
AWS Lambda Powertools: Idempotency, A Deeper Dive
If switching your development to Python for AWS Lambda Powertools is not for you, I recommend heading over to the AWS Powertools Roadmap and supporting the Typescript and .NET feature requests by adding a 👍.
- TypeScript support for AWS Lambda Powertools is now on the roadmap!
What are some alternatives?
middy - 🛵 The stylish Node.js middleware engine for AWS Lambda 🛵
powertools-lambda-typescript - Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
deno-lambda - A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself.
dynamoDb-partiQL-javascript - This github repo contains the code examples and a getting started part to follow along with the blog article. It compares ways of querying and inserting data into dynamoDb using PartiQL vs using the Document Client using the AWS Javascript SDK
aws-xray-sdk-node - The official AWS X-Ray SDK for Node.js.
logger-with-cache - An example of a logger for AWS Lambda which caches all messages
Grant - OAuth Proxy
cdk-async-testing-example
super-serverless-sample - Backend serverless que simula o sistema de votação do BBB
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.