failure-lambda
serverless-express
Our great sponsors
failure-lambda | serverless-express | |
---|---|---|
3 | 18 | |
90 | 5,055 | |
- | 0.7% | |
0.0 | 8.4 | |
about 1 year ago | 12 days ago | |
JavaScript | JavaScript | |
MIT License | 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.
failure-lambda
-
Chaos engineering for serverless with AWS Fault Injection Simulator
failure-lambda is a small Node module for injecting failure into AWS Lambda. It offers a simple failure injection wrapper for your Lambda handler where you then can choose to inject failure by setting the failureMode to latency, exception, denylist, diskspace or statuscode. https://github.com/gunnargrosch/failure-lambda
-
What do you mean with: "There is no root cause" ?!?
In one of our last projects, I started using Failure-Lambda module from Gunnar Grosch to be able to inject failure in our system. Not yet in production, but it helped a lot during the test and staging phase to detect and handle possible errors that we overlooked. (If you want to know more about Chaos Engineering and Failure Lambda check out this post) So I was very eager to see his speech about Chaos Engineering at the Hamburg Serverless Days.
-
Circuit Breaker Solution for AWS Lambda Functions
A common approach is to implement a circuit breaker inside your function and use DynamoDB to store the circuit breaker state (like Gunnar Grosch’s failure lambda node.js implementation and Jeremy Daly outlines in his AWS Reference Architecture Pattern). The Lambda function will fail before calling the Third-Party API when a failure threshold has been exceeded. This protects the downstream service, but it will not stop AWS Lambda polling the upstream queue and invoking your function. You also have to make changes to lambda function code, specific to the particular Lambda runtime and programming language. The approach introduces a number of DynamoDB requests which could significantly increase costs.
serverless-express
-
[Open source] Serverless Express Starter Kit with CI/CD on AWS
After building out a GPT powered endpoint, I wanted a low cost way of hosting it. At the time, I came across the serverless-express project https://github.com/vendia/serverless-express/tree/mainline, but no actual starter kits that would allow me to deploy it.
-
Nest.js in Lambda
It’s all handled using https://github.com/vendia/serverless-express
-
EuroSquares: An AWS Amplify-Powered Game for Eurovision 2023
Amplify gives an option of using a template and linking the API Endpoint with the Lambda and a connected DynamoDB table. I selected the template, Serverless Espress, which provided a lot of code in the template, though the majority of it felt overly bloated for what was effectively CRUD functionality.
-
Moving from Apollo to Vanilla GraphQL
With that in mind, the goal of this library is to be as lightweight as possible. There are other libraries out there that can handle express -> serverless mutation. See Serverless Express for that. If you want to rewrite as little code as possible, that is your best solution. With that being said, if the sole purpose of express is middleware and is only hosting a one-endpoint GraphQL server, I recommend rewriting to utilize this library.
-
Porting Curveball to Bun
To get Express to run on AWS Lambda the Node http stack needs to be emulated, or a full-blown HTTP/TCP server needs to be started and proxied to. Each of these workarounds require a ton of code from libraries like serverless-express.
-
Serverless backend (AWS S3/API GW/Lambda) vs. Node/Express?
Express is a framework/software. Lambda is compute. You can run express in Lambda. Ive done this and it was great. Check out https://github.com/vendia/serverless-express. The cool thing is that it's portable - you can build for one compute environment, and move it to another if it doesnt suit
-
Using a Lambda function for a very early monolithic app?
Yea its fine use https://github.com/vendia/serverless-express since you are using express
- Deploy React and Node+Express application using AWS SAM Cli
-
Deploy a NestJS API to AWS Lambda with Serverless Framework
Serverless Express - library that makes our "plain" NestJS API play nicely with Serverless
-
AWS Lambda: Can you have too many? Or is it more nuanced than that?
Some people like the Unix philosophy of "Do one thing and do it well" for Lambdas, others would build a monolithic app using a single Lambda with built in "routes". Both designs have pros and cons.
What are some alternatives?
aws-lambda-power-tuning - AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
aws-lambda-fastify - Insipired by aws-serverless-express to work with Fastify with inject functionality.
aws-lambda-chaos-injection - Chaos Injection library for AWS Lambda
dynamoose - Dynamoose is a modeling tool for Amazon's DynamoDB
aws-fis-templates-cdk - Collection of AWS Fault Injection Simulator (FIS) experiment templates deploy-able via the AWS CDK
passport-apple - Apple authentication strategy for Passport and Node.js.
serverless-layers - Serverless.js plugin implementing AWS Lambda Layers, reducing lambda size, warm-up, and deployment time.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
lambda-circuit-breaker
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
arc.codes - The Architect web site! 🌩
node-mysql2 - :zap: fast mysqljs/mysql compatible mysql driver for node.js