With the v2.6.0 release of the aws-sdk for Javascript, all service classes are componentized and fully support browserify!  I asked for the support late last year and AWS came through.

What does this mean you ask?

  • No code bloat. You only require the specific services you are going to use.
  • Browserify support means that your code can get even smaller.
  • Less code means faster AWS Lambdas.  Lambda’s have faster cold starts, which means quicker response time and less cost for you.
  • Allows you to stay up to date with the most recent aws-sdk-js without paying a performance penalty.  The only option before this support was to a) stick with the outdated version of the pre-shipped aws-sdk-js or b) ship the sdk in your lambda .zip

If you would like to start taking advantage of this in your Lambda code, check out my Serverless browserify plugin for the Serverless platform.  My plugin handles all the heavy lifting with almost zero configuration.

 

Advertisements