AWS SDK v2 or v3 - which one should you use?

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • aws-sdk-js-v3

    Modularized AWS SDK for JavaScript.

    I really suggest checking out the repo and especially the Upgrading section for more details.

  • middy

    🛵 The stylish Node.js middleware engine for AWS Lambda 🛵

    Anyway, we started our project like that, taking slightly longer for every little thing, just to get used to the new documentation, which also has a complete different format, but we were quite happy, until we realised that some Middy middleware was still relying on old version of SDK and we started wondering if that would have worked at all. After some searches we found out surprisingly that the Lambda Runtime does not come with aws-sdk v3 preinstalled, but v2.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • aws-sdk-js

    AWS SDK for JavaScript in the browser and Node.js

    Well... that depends. First, if you are writing code interacting with AWS which will run on your machine, or on docker, and not on lambda, it definitely makes sense to use v3. But even on lambda... apparently the code from the 2 versions can coexist ( although ugly and confusing for developers) so it is not a problem, and according to some, you should always anyway bundle aws-sdk because of slight differences in what you think you are using (the latest stable version and the version installed on the Lambda runtime. (for example at the time of writing this Latest release for v2 is 2.1045.0 while the installed version in the runtime is 2.1001.0 - that's 44 minor versions with improvements and bug fixes!!)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts