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

Using Serverless Architectures to build and pr...

Using Serverless Architectures to build and provision modern infrastructures​

Introduction to AWS Lambda, Chalice and API Gateway

Ramit Surana

October 15, 2018
Tweet

More Decks by Ramit Surana

Other Decks in Programming

Transcript

  1. Agenda • Introduction to AWS Lambda • Serverless Architecture •

    Demo • Architecture • Chalice • Monitoring • API Perfomance and Measurements • Learningz • Useful Services • Other Options
  2. Introduction to AWS Lambda • Service based on docker containers

    • Also called Function as a Service • Available in Node.js (JavaScript), Python, Java (Java 8 compliant) and C # (.NET Core), and Go. • Cost Involved: - First 1 million requests free - $0.20 per 1 million requests
  3. Serverless Architectures • Distribution of API Calls into Functions •

    Usage of external services from cloud to allocate data • Pay as you go model @Copyright by Martin Fowler
  4. Chalice • Integrates well with other AWS Services • Can

    deploy using chalice deploy • Built using Python • Other Frameworks are Serverless (JAWS), Zappa etc
  5. Monitoring • Individual Lambda can be monitored only for last

    24 hrs • Use AWS Services like CloudWatch & CloudTrail • IOPipe • Datadog
  6. Other Options • Azure Functions • GCP Functions • Oracle

    Cloud Functions • OpenWhisk • Iron.io • Webtask.io • Nuclio
  7. Learnings Pros • Serverless is really powerful ! • Great

    Performance • Highly Scalable • Low Cost • Stateless Cons • Monitoring and Debugging is hard • Lack of Fine Grained Control • Cold start issues • Timeout Issues • Vendor Lock-In
  8. References • Chalice - https://github.com/aws/chalice • SAM - https://github.com/awslabs/serverless-application-model •

    Python-lambda - https://github.com/nficano/python-lambda • AWS Lambda - https://aws.amazon.com/de/lambda/features/ • Jmeter - https://jmeter.apache.org/ • Cloudwatch - https://aws.amazon.com/de/cloudwatch/ • FaaS - https://martinfowler.com/articles/serverless.html • https://github.com/ramitsurana/the-serverless-stuff