Running your code on the cloud without a Server: Amazon Lambda, Amazon Fargate, and Azure Functions.

Use cases for Serverless

  • Application for continuous delivery pipeline
  • Data processing
  • Real time stream processing
  • Real time file Processing for instance run a code when new data is received
  • Data preprocessing and model serving in machine learning

Amazon Lambda

Amazon Lambda runs code without servers and clusters. In other words, you don’t need to provision infrastructure. Amazon Lambda also has a code editor where you can write, test, and view execution results. Your code should be uploaded as a zip file or as a container image, the resources required are automatically allocated to it. This code could be run based on a trigger for instance change in data in S3 bucket, response to HTTP request using Amazon API Gateway.

source

Pricing

Amazon Lambda free usage tier includes 1M free requests per month and 400,000 GB-seconds of compute time per month. Amazon Lambda pricing is based on the number of requests for your functions and the duration, the time it takes for your code to execute.

Hands-On Tutorials

Using AWS Lambda with the Mobile SDK for Android

Code Examples

To-Do App

Official Resources

Amazon Lambda

Other Resources

AWS Lambda — The Ultimate Guide

Amazon Fargate

Amazon Fargate runs containers without provisioning any infrastructure. It works majorly with Amazon ECS and Amazon EKS. Task Definition is the blueprint to run application, it contain the description of containers used in the application. It is always in JSON format.

source

Pricing

AWS Fargate pricing is based on the amount of vCPU and memory resources consumed by your containerized applications.

Hands-On Tutorials

Getting Started with Amazon ECS on AWS Fargate

Code Examples

Application Tracing on Fargate with AWS X-Ray

Official Resources

AWS Fargate

Other Resources

AWS Fargate Tutorial | AWS Tutorial For Beginners | AWS Certification Training | Edureka

Azure Functions

Azure Functions is a serverless compute service that runs event triggered code without provisioning infrastructures like compute. “Compute on demand”.

source

Pricing

Azure Functions provides a monthly free grant of 1 million requests and 400,000 GBs of resource consumption per month per subscription in pay-as-you-go pricing across all function apps in that subscription. Azure Function Pricing is based on per-second resource consumption and executions.

Hands-On Tutorials

Filtering sensor data simulated on IoT Edge with Azure Functions

Code Examples

Trigger HTTP API endpoint with Azure Function to classify images

Official Resources

Azure Functions

Other Resources

Azure Function Apps Tutorial | Introduction for serverless programming

General Resources

ICYMI: Serverless Q4 2020

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store