Skip to content

仓库 files navigation

lambda-bin-perf

Running the Example

关注 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. 比较 results.

Customize for Your Needs

关注 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. 关注 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

关于

比较 performance with and without lambda-bin.

Topics

Resources

Stars

0 stars

关注者

1 watching

复刻s

发布

Used by

贡献者

Languages