Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Write a Function

Write a Function

stefan judis

June 24, 2019
Tweet

More Decks by stefan judis

Other Decks in Technology

Transcript

  1. @stefanjudis netlify.com zeit.co (there are way more services out there...)

    Everything changes with serverless... #JAMstackToronto
  2. @stefanjudis Serverless thinking: Use a service whenever possible because services

    are almost always cheaper than people. Paul Johnston #JAMstackToronto
  3. @stefanjudis Serverless is an idea, not any single implementation of

    that idea. Tierney Cyren (Microsoft) #JAMstackToronto
  4. @stefanjudis (there are way more services out there...) You don't

    have to build everything yourself. #JAMstackToronto
  5. @stefanjudis exports.sayHello = async (event) => { return { statusCode:

    200, body: JSON.stringify({"msg": "Hello from Lambda!"}) }; }; #JAMstackToronto
  6. @stefanjudis exports.sayHello = async (event) => { return { statusCode:

    200, body: JSON.stringify({"msg": "Hello from Lambda!"}) }; }; That's it! #JAMstackToronto
  7. @stefanjudis exports.sayHello = async (event) => { return { statusCode:

    200, body: JSON.stringify({"msg": "Hello from Lambda!"}) }; }; #JAMstackToronto