Skip to content

botbits/lambda-bin-perf

Repository files navigation

lambda-bin-perf

Running the Example

Follow these steps to run this example:

  1. Install all dependencies with:

npm install

  1. Prepare the bin folder with:

gulp

  1. Deploy it all to AWS with (make sure to setup AWS credentials first):

npm run serverless

  1. Edit script.yml and replace My_StackOutputs_ServiceEndpoint with the serverless Stack Outputs for your ServiceEndpoint.

  2. Run tests

npm run perf-original

npm run perf-lambdaBin

  1. Compare results.

Customize for Your Needs

Follow these steps to customize this example:

  1. Replace dependencies in package.json to include your own dependencies.

  2. Change gulpfile.js to prepare your bin folder.

  3. Change test-original.js to invoke your own code (added to package.json on step 1).

  4. Change index.js to invoke your code using lambda-bin instead or your current binary deployment approach.

  5. Follow the steps under section Running the Example.

Cleanup AWS Account

Once you are done testing clean up your AWS account by running:

npm run cleanup

Releases

No releases published

Packages

No packages published