Introduction to

Serverless

Text

By: Raza Z Sayed (rsayed@theworkinggroup.ca)

Evolution Of Computing

  • On Premise Hardware/Servers (Setup Time: Weeks)
  • Cloud Instances e.g. Amazon EC2, Google Compute Engine etc   (Setup Time: Minutes)
  • Containers e.g. Amazon ECS, Google GKE, Kubernetes etc (Setup Time: Seconds)

Types Of Cloud Computing Models

  • SaaS (Software As A Service e.g. Salesforce, Gmail, Flickr etc)
  • IaaS (Infrastructure as a Service e.g. AWS EC2, Google Compute Engine, Microsoft Azure etc)
  • PaaS (Platform as a Service e.g. Heroku, Google App Engine, AWS Beanstalk etc )
  • BaaS (Backend as a Service e.g. Google Firebase, AWS DynamoDB, Apple CloudKit etc)

FaaS (Functions As A Service) / Serverless

Why Serverless ?

Use Cases

  • Backend for web, mobile apps

  • IoT (Internet Of Things)
  • Data processing and manipulation
  • Chatbots in AI/Machine Learning apps

How does it work

  • Events trigger a function/lambda. Example events: Uploading a photo/video, User entering some text, change in temperature sensor reading etc
  • New instance launched in cloud to execute the function which may generate a response
  • Instance automatically deleted after function execution completes

Providers

  • Amazon (AWS Lambda) . Supported languages: Node.js, Java, Python, C#, Go
  • Google (Google Cloud Functions) . Supported languages: Node.js
  • Microsoft (Azure Functions). Supported languages: Node.js, C#, F#
  • IBM (IBM Openwhisk) . Supported languages: Node.js, Java, Python, PHP Go, Swift
  • etc

Example Shopping Cart in Traditional app

Ref: https://blog.fugue.co/2016-01-31-aws-lambda-and-the-evolution-of-the-cloud.html

Example Shopping Cart in a Serverless app

Ref: https://blog.fugue.co/2016-01-31-aws-lambda-and-the-evolution-of-the-cloud.html

Benefits

  • Autoscaling
  • Pay per execution
  • Event driven
  • Security

Questions ?

Stay tuned for deep dive...

Thank You !!

Introduction to Serverless

By Raza Z Sayed

Introduction to Serverless

  • 23