Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverless Microservices with AWS Lambda and API Gateway

Serverless Microservices with AWS Lambda and API Gateway

We'll talk about pros and cons of using serverless as well as microservices, and I'll demonstrate how to set it up with AWS Lambda and API Gateway.

Presented on js.la on 02/23/2018

Blog: https://AlexTamoykin.com
LinkedIn: https://www.linkedin.com/in/alextamoykin/
Twitter: https://twitter.com/fsproru
Video: https://www.youtube.com/watch?v=aeQLGe8d7kk

Alexander Tamoykin

February 23, 2018
Tweet

More Decks by Alexander Tamoykin

Other Decks in Technology

Transcript

  1. ALEX TAMOYKIN Co-Founder, CTO @ Shuttle Finance Founder, CTO @

    The Right Balance Formerly: ATV/Dreamworks, Victorious, Zestfinance
  2. WHY

  3. HOW

  4. CREATE A LAMBDA HANDLER module.exports.hello = (event, context, callback) =>

    { const response = { statusCode: 200, body: JSON.stringify({ message: 'Yay', input: event, }), }; callback(null, response); };
  5. SERVERLESS GOTCHAS ➤ FUNCTION EXECUTION IS CAPPED AT 5 MINUTES.

    ➤ FUNCTIONS CAN’T HOLD STATE. ➤ WARM UP TIMES. ➤ DEPLOYMENT PACKAGE LIMITS. ➤ TRY / CATCH EXCEPTIONS YOURSELF.