Hi guys,
I’ve been learning JS Promises since I am writing up a complex multistage video ingestion process at work that I think would benefit from this structure.
I noticed https://github.com/serverless/examples/blob/master/aws-node-fetch-file-and-store-in-s3/handler.js#L5 uses “bluebird” promises. Can I ask why? I think node4.3 supports Promises natively.
I tried to summarise my learnings here: https://github.com/kaihendry/lambda-promises/blob/master/handler.js
Be great if a more seasoned developer could critique this code. With thanks,