Skip to main content

The NodejsFunction from the @aws-cdk/aws-lambda-nodejs package but with the AWS_NODEJS_CONNECTION_REUSE_ENABLED automatically set.

Project description

Matt's Lambda Node.js Library

---

Stability: Experimental

This is a developer preview (public beta) module. Releases might lack important features and might have future breaking changes.

This API is still under active development and subject to non-backward compatible changes or removal in any future version. Use of the API is not recommended in production environments. Experimental APIs are not subject to the Semantic Versioning model.


This library provides constructs for Node.js Lambda functions. Well, ok, so AWS already does that with the @aws-cdk/aws-lambda-nodejs package.

All this CDK construct does it expose the same NodejsFunction construct as that other package, but I set the AWS_NODEJS_CONNECTION_REUSE_ENABLED for you. Why? Because it's a super great environment flag built into the AWS SDK which enables http keep-alive, and greatly improves performance.

Usage

This is a drop-in replacement:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
# import {NodejsFunction} from '@aws-cdk/aws-lambda-nodejs';
from nodejsfunction_plus import NodejsFunction

NodejsFunction(self, "whatever")

Contributing

Just submit a PR.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mbonig.aws-lambda-nodejs.NodejsFunctionPlus, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size mbonig.aws_lambda_nodejs.NodejsFunctionPlus-0.0.1-py3-none-any.whl (13.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mbonig.aws_lambda_nodejs.NodejsFunctionPlus-0.0.1.tar.gz (12.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page