SlideShare a Scribd company logo
STARTUP X 1
Going Serverless
with AWS Lambda
STARTUP X 2
About Me
• Principal Consultant with Improving Atlanta
• Contributing Writer to Business2Community
& The Enterprisers Project
• 20 Years Doing Application Development
• Worked with Clients in AWS & Azure Clouds
• Certified AWS Developer Associate
• Drove Amazon Partnership Effort at
Improving
STARTUP X 3
Agenda
What is Serverless
& Why Should We
Use It
AWS Lambda How Companies
are Using Lambda
to Change
Business
Setting Up a
Lambda Function
Using .NET Core, C#
and Visual Studio
STARTUP X 4
What is Serverless?
NEW ERA OF
APPLICATION
DEVELOPMENT IN THE
CLOUD
ALLOWS YOU TO RUN
CODE WITHOUT
PROVISIONING SERVERS
THERE ARE SERVERS
INVOLVED. YOU JUST
AREN’T MANAGING
THEM
EVENT-DRIVEN CLOUD
COMPUTING.
EVENT TRIGGERS CODE
THAT HAS BEEN LOADED
ONTO THE SYSTEM.
BUILDING ON A
FUNCTION BY FUNCTION
BASIS (FAAS)
STARTUP X 5
Why Serverless?
Pay by the Execution
In AWS, the first 1,000,000 are
free. $.20 per million thereafter.
$0.00001667 GB-second of
compute time per execution
Effortless Scaling
No concern over scaling up or
down infrastructure.
Performance is always optimized.
No Maintenance
The cloud provider handles all
maintenance so no patching, no
licensing,
Cost Matches Usage
Only pay for the compute time
you consume.
STARTUP X 6
Flavors of Serverless
AWS Lambda
Azure
Functions
Google
Functions
• More extensive language
support (PHP, Typescript, F#,
Powershell)
• Built for hybrid cloud
• Only supports NodeJS & Python
• Slow product development
What really matters is the availability of and consumption of other services to within the cloud provider ecosystem. Being able to execute
functions in response to events is only as useful as what you can actually do within the execution pipeline. This is where the services differ —
their ability to to pass data to backend services, perform calculations, transform data, store results, and quickly retrieve data.
• First mover (November 2014)
• Leader in serverless computing
• Experimental language options
• Built for pure cloud
STARTUP X 7
AWS Lambda
…
AWS Runs 70% of Serverless
User Base
Industry Leader
Announced at re:Invent
November 2014. Preceded
Azure Functions by 2 Years.
First Mover
32% market share compared to
17% for Azure
AWS Cloud Twice Size of Azure
Alexa product development
driven by internal stakeholders
providing initial demand and
use cases
Innovates and Leads on Functionality
STARTUP X 8
History of Lambda
NOVEMBER 2014
•Lambda is released to
preview at re:Invent. It was
born from Amazon’s Alexa
personal assistant. Lambda
was the engine built to run it.
APRIL 2015
•Lambda is released to
general availability.
JULY 2015
•AWS console adds blueprints
for easy creation and testing
of Lambda functions.
DECEMBER 2016
•Adds support for C# and .NET
Core.
STARTUP X 9
1
3
4
5
Node.js
Python
Ruby
Java
Go
C# (.NET Core)
Can download the AWS Toolkit and work directly in
Visual Studio. Setup your Lambda service and push it
up to the cloud without leaving Visual Studio.
2
6
Cold start performance advantage due to
interpreters with lightweight runtimes.
Cold start performance advantage due to
interpreters with lightweight runtimes.
Higher memory footprint and longer execution times
can translate into higher costs.
STARTUP X 10
Setting Up a Lambda Function
01
03
Handler
A function in your code that AWS Lambda can invoke when
executing your code
exports.myLambdaFunction(Event, context, callback) => {}
02
Runtime
Runtime is the language you will be writing your code in.
Node.js, Python, C#, Java, Ruby, Go
Trigger
Dynamo DB table is updated, triggering Lambda code.
An HTTP request comes into AWS API Gateway triggering Lambda code.
An event fires off on an interval like a cron job from CloudWatch Events
STARTUP X 11
Using Lambda with Other AWS Services
Amazon Kinesis
Amazon DynamoDB
Amazon Simple Queue
Service
Elastic Load Balancing
Amazon Cognito
Amazon Lex
Amazon Alexa
Amazon API Gateway
Amazon CloudFront
Amazon Kinesis Data Firehose
Amazon Simple Storage Service
Amazon Simple Notification
Service
Amazon Simple Email Service
AWS CloudFormation
Amazon CloudWatch Logs
Amazon CloudWatch Events
AWS CodeCommit
AWS Config
Services that Lambda
Reads Events From
Services that Invoke
Lambda Synchronously
Services that Invoke
Lambda Asynchronously
STARTUP X 12
How Companies are Using Lambda
Netflix Company 2 The Guardian Financial EnginesFinancial EnginesThe GuardianNetflix iRobot
STARTUP X 13
Netflix
Streaming Media Bohemoth
7 Billion Hours of Video to 50 Million Customers
Across 60 Countries.
Use event-based triggers to help automate the encoding process of
media files, the validation of backup completions and instance
deployments at scale
New abstraction layer that gets above what they’ve used In the
past for more efficiency, cleaner logic for better control of their
systems.
Rules-based self-managing infrastructure
STARTUP X 14
SWOT
Neil Hunt
Chief Product Officer at Netflix
STARTUP X 15
iRobot
IoT Vacuum Device Making Pets
Bearable
20 Million iRobots Worldwide Sending Lots of Data.
Gartner forecasts that there will be 20.4 billion
“connected things” in use worldwide by 2020.
Rapid growth necessitated solution to scale more quickly and allow
for more direct control
Uses 25 AWS services to run the Roomba vacuum
Serverless architecture based on AWS IoT and AWS Lambda, iRobot
is able to keep the cost of the cloud platform low, avoid the need
for subscription services, and manage the solution with fewer than
10 people.
STARTUP X 16
SWOT
iRobot Architecture
STARTUP X 17
Financial Engines
Computational Engine Used to Automate Investment
Portfolio Management
Serves 9 Million People Holding $1.2 Trillion in Assets
94% savings in hard costs.
Replaced 50 IPO servers running in 21 different environments with
four Lambda endpoints that handle all the traffic.
Near-zero downtime and near-zero performance degradation while
serving 200–300 million IPO requests per month at rates of 60,000
per minute during heaviest traffic, which can reach 10 times
normal traffic
STARTUP X 18
The Guardian
UK News Provider Runs The Guardian
& The Observer
60K people worldwide receive The Guardian
newspaper. Uses AWS Step Functions for Workflow
Processing
Development team relied on disparate distributed systems to store
customer data. Translation: new customers not receiving their paper
Used step functions to coordinate invocation of Lambda functions. This
makes it easy to orchestrate application and business processes in an
automated, reliable way.
STARTUP X 19
SWOT
The Guardian Architecture
STARTUP X 20
Demo
C# with .NET Core using Visual Studio
STARTUP X 21
SWOT
Install AWS Toolkit in Visual Studio 2017 or 2019 from Manage Extensions
STARTUP X 22
SWOT
Create a New Project and Search for AWS
STARTUP X 23
SWOT
Under Configure, Input Project Name, Location, Solution & Solution Name
STARTUP X 24
SWOT
Select an AWS Blueprint That You Want Your Function to Follow
STARTUP X 25
aws-lambda-tools-default.json Holds Configuration Information
STARTUP X 26
function.cs Holds the Function Code to Invoke
STARTUP X 27
Right Click on Project & Select Publish to AWS
Click on the User Icon to Enter AWS Account Details to Pair Visual Studio
Also Select Region You are Uploading to and the Language Runtime
STARTUP X 28
Under Advanced, Set the IAM Role, Environmental Variables & Config Settings
STARTUP X 29
You’ll See It Uploading Your Function to AWS
STARTUP X 30
After the Successful Upload, You Should See the Function in the AWS Console
STARTUP X 31
Finally, Test Your Function from Within Visual Studio
STARTUP X 32
Resources
Going Serverless with AWS Lambda
The companion article I wrote for Business 2 Community.
https://aws.amazon.com/free/
AWS Toolkit for Visual Studio
https://aws.amazon.com/visualstudio/
Deploy Existing .NET Core Web API to AWS Lambda
https://aws.amazon.com/blogs/developer/deploy-an-existing-
asp-net-core-web-api-to-aws-lambda/
AWS Free Tier
Try Lambda out yourself on Amazon’s dime.
https://aws.amazon.com/free/
Creating an AWS Lambda Service with C#
https://medium.com/tutorialsxl/creating-aws-lambda-service-
in-c-da14989ae1cb
STARTUP X 33
Thanks
Email: mark.runyon@improving.com
Twitter: aspprogrammer
LinkedIn: /in/softwarearchitect
http://markrunyon.com
https://improving.com

More Related Content

Similar to Going serverless with aws lambda (20)

Deploy on AWS from GIT Lab PDF2.pdf
Deploy on AWS from GIT Lab PDF2.pdfDeploy on AWS from GIT Lab PDF2.pdf
Deploy on AWS from GIT Lab PDF2.pdf
Srinivas Kannan
 
lambda.pptx
lambda.pptxlambda.pptx
lambda.pptx
HODBSC1
 
AWS Serverless Introduction (Lambda)
AWS Serverless Introduction (Lambda)AWS Serverless Introduction (Lambda)
AWS Serverless Introduction (Lambda)
Ashish Kushwaha
 
AWS Cloud Solutions Architects & Tech Enthusiasts
AWS Cloud Solutions Architects & Tech EnthusiastsAWS Cloud Solutions Architects & Tech Enthusiasts
AWS Cloud Solutions Architects & Tech Enthusiasts
JasonRoy50
 
When to use serverless computing.pdf
When to use serverless computing.pdfWhen to use serverless computing.pdf
When to use serverless computing.pdf
seo18
 
When to use serverless computing.pdf
When to use serverless computing.pdfWhen to use serverless computing.pdf
When to use serverless computing.pdf
SGBSeo
 
[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석
[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석
[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석
Amazon Web Services Korea
 
Serverless architectures-with-aws-lambda
Serverless architectures-with-aws-lambdaServerless architectures-with-aws-lambda
Serverless architectures-with-aws-lambda
saifam
 
AWS Lambda Documentation
AWS Lambda DocumentationAWS Lambda Documentation
AWS Lambda Documentation
Whizlabs
 
Reinvent recap
Reinvent recapReinvent recap
Reinvent recap
Jason Poley
 
Overview aws-lambda-security
Overview aws-lambda-securityOverview aws-lambda-security
Overview aws-lambda-security
mustafa sarac
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
Amazon Web Services Korea
 
Cloud computing03
Cloud computing03Cloud computing03
Cloud computing03
Piyush Sharma
 
Amazon Web Services (AWS) that enables developers to build applications with ...
Amazon Web Services (AWS) that enables developers to build applications with ...Amazon Web Services (AWS) that enables developers to build applications with ...
Amazon Web Services (AWS) that enables developers to build applications with ...
Chandravathi Dittakavi
 
ReInvent 2019 reCap Nordics
ReInvent 2019 reCap NordicsReInvent 2019 reCap Nordics
ReInvent 2019 reCap Nordics
Marcia Villalba
 
Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...
Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...
Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...
HostedbyConfluent
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
Omar Fathy
 
Comprehensive Guide: Web Scraping with AWS Lambda
Comprehensive Guide: Web Scraping with AWS LambdaComprehensive Guide: Web Scraping with AWS Lambda
Comprehensive Guide: Web Scraping with AWS Lambda
X-Byte Enterprise Crawling
 
Aws 101 A walk-through the aws cloud (2013)
Aws 101  A walk-through the aws cloud (2013)Aws 101  A walk-through the aws cloud (2013)
Aws 101 A walk-through the aws cloud (2013)
Martin Yan
 
Lecture 6 (Cloud Service Provider)-1.pptx
Lecture 6 (Cloud Service Provider)-1.pptxLecture 6 (Cloud Service Provider)-1.pptx
Lecture 6 (Cloud Service Provider)-1.pptx
sarthaksenapati2
 
Deploy on AWS from GIT Lab PDF2.pdf
Deploy on AWS from GIT Lab PDF2.pdfDeploy on AWS from GIT Lab PDF2.pdf
Deploy on AWS from GIT Lab PDF2.pdf
Srinivas Kannan
 
lambda.pptx
lambda.pptxlambda.pptx
lambda.pptx
HODBSC1
 
AWS Serverless Introduction (Lambda)
AWS Serverless Introduction (Lambda)AWS Serverless Introduction (Lambda)
AWS Serverless Introduction (Lambda)
Ashish Kushwaha
 
AWS Cloud Solutions Architects & Tech Enthusiasts
AWS Cloud Solutions Architects & Tech EnthusiastsAWS Cloud Solutions Architects & Tech Enthusiasts
AWS Cloud Solutions Architects & Tech Enthusiasts
JasonRoy50
 
When to use serverless computing.pdf
When to use serverless computing.pdfWhen to use serverless computing.pdf
When to use serverless computing.pdf
seo18
 
When to use serverless computing.pdf
When to use serverless computing.pdfWhen to use serverless computing.pdf
When to use serverless computing.pdf
SGBSeo
 
[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석
[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석
[AWS Dev Day] 기조연설 – Olivier Klein AWS 신기술 부문 책임자, 정성권 삼성전자 수석
Amazon Web Services Korea
 
Serverless architectures-with-aws-lambda
Serverless architectures-with-aws-lambdaServerless architectures-with-aws-lambda
Serverless architectures-with-aws-lambda
saifam
 
AWS Lambda Documentation
AWS Lambda DocumentationAWS Lambda Documentation
AWS Lambda Documentation
Whizlabs
 
Overview aws-lambda-security
Overview aws-lambda-securityOverview aws-lambda-security
Overview aws-lambda-security
mustafa sarac
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
Amazon Web Services Korea
 
Amazon Web Services (AWS) that enables developers to build applications with ...
Amazon Web Services (AWS) that enables developers to build applications with ...Amazon Web Services (AWS) that enables developers to build applications with ...
Amazon Web Services (AWS) that enables developers to build applications with ...
Chandravathi Dittakavi
 
ReInvent 2019 reCap Nordics
ReInvent 2019 reCap NordicsReInvent 2019 reCap Nordics
ReInvent 2019 reCap Nordics
Marcia Villalba
 
Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...
Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...
Building Real-Time Serverless Data Applications With Joseph Morais and Adam W...
HostedbyConfluent
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
Omar Fathy
 
Comprehensive Guide: Web Scraping with AWS Lambda
Comprehensive Guide: Web Scraping with AWS LambdaComprehensive Guide: Web Scraping with AWS Lambda
Comprehensive Guide: Web Scraping with AWS Lambda
X-Byte Enterprise Crawling
 
Aws 101 A walk-through the aws cloud (2013)
Aws 101  A walk-through the aws cloud (2013)Aws 101  A walk-through the aws cloud (2013)
Aws 101 A walk-through the aws cloud (2013)
Martin Yan
 
Lecture 6 (Cloud Service Provider)-1.pptx
Lecture 6 (Cloud Service Provider)-1.pptxLecture 6 (Cloud Service Provider)-1.pptx
Lecture 6 (Cloud Service Provider)-1.pptx
sarthaksenapati2
 

Recently uploaded (20)

TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 

Going serverless with aws lambda

  • 1. STARTUP X 1 Going Serverless with AWS Lambda
  • 2. STARTUP X 2 About Me • Principal Consultant with Improving Atlanta • Contributing Writer to Business2Community & The Enterprisers Project • 20 Years Doing Application Development • Worked with Clients in AWS & Azure Clouds • Certified AWS Developer Associate • Drove Amazon Partnership Effort at Improving
  • 3. STARTUP X 3 Agenda What is Serverless & Why Should We Use It AWS Lambda How Companies are Using Lambda to Change Business Setting Up a Lambda Function Using .NET Core, C# and Visual Studio
  • 4. STARTUP X 4 What is Serverless? NEW ERA OF APPLICATION DEVELOPMENT IN THE CLOUD ALLOWS YOU TO RUN CODE WITHOUT PROVISIONING SERVERS THERE ARE SERVERS INVOLVED. YOU JUST AREN’T MANAGING THEM EVENT-DRIVEN CLOUD COMPUTING. EVENT TRIGGERS CODE THAT HAS BEEN LOADED ONTO THE SYSTEM. BUILDING ON A FUNCTION BY FUNCTION BASIS (FAAS)
  • 5. STARTUP X 5 Why Serverless? Pay by the Execution In AWS, the first 1,000,000 are free. $.20 per million thereafter. $0.00001667 GB-second of compute time per execution Effortless Scaling No concern over scaling up or down infrastructure. Performance is always optimized. No Maintenance The cloud provider handles all maintenance so no patching, no licensing, Cost Matches Usage Only pay for the compute time you consume.
  • 6. STARTUP X 6 Flavors of Serverless AWS Lambda Azure Functions Google Functions • More extensive language support (PHP, Typescript, F#, Powershell) • Built for hybrid cloud • Only supports NodeJS & Python • Slow product development What really matters is the availability of and consumption of other services to within the cloud provider ecosystem. Being able to execute functions in response to events is only as useful as what you can actually do within the execution pipeline. This is where the services differ — their ability to to pass data to backend services, perform calculations, transform data, store results, and quickly retrieve data. • First mover (November 2014) • Leader in serverless computing • Experimental language options • Built for pure cloud
  • 7. STARTUP X 7 AWS Lambda … AWS Runs 70% of Serverless User Base Industry Leader Announced at re:Invent November 2014. Preceded Azure Functions by 2 Years. First Mover 32% market share compared to 17% for Azure AWS Cloud Twice Size of Azure Alexa product development driven by internal stakeholders providing initial demand and use cases Innovates and Leads on Functionality
  • 8. STARTUP X 8 History of Lambda NOVEMBER 2014 •Lambda is released to preview at re:Invent. It was born from Amazon’s Alexa personal assistant. Lambda was the engine built to run it. APRIL 2015 •Lambda is released to general availability. JULY 2015 •AWS console adds blueprints for easy creation and testing of Lambda functions. DECEMBER 2016 •Adds support for C# and .NET Core.
  • 9. STARTUP X 9 1 3 4 5 Node.js Python Ruby Java Go C# (.NET Core) Can download the AWS Toolkit and work directly in Visual Studio. Setup your Lambda service and push it up to the cloud without leaving Visual Studio. 2 6 Cold start performance advantage due to interpreters with lightweight runtimes. Cold start performance advantage due to interpreters with lightweight runtimes. Higher memory footprint and longer execution times can translate into higher costs.
  • 10. STARTUP X 10 Setting Up a Lambda Function 01 03 Handler A function in your code that AWS Lambda can invoke when executing your code exports.myLambdaFunction(Event, context, callback) => {} 02 Runtime Runtime is the language you will be writing your code in. Node.js, Python, C#, Java, Ruby, Go Trigger Dynamo DB table is updated, triggering Lambda code. An HTTP request comes into AWS API Gateway triggering Lambda code. An event fires off on an interval like a cron job from CloudWatch Events
  • 11. STARTUP X 11 Using Lambda with Other AWS Services Amazon Kinesis Amazon DynamoDB Amazon Simple Queue Service Elastic Load Balancing Amazon Cognito Amazon Lex Amazon Alexa Amazon API Gateway Amazon CloudFront Amazon Kinesis Data Firehose Amazon Simple Storage Service Amazon Simple Notification Service Amazon Simple Email Service AWS CloudFormation Amazon CloudWatch Logs Amazon CloudWatch Events AWS CodeCommit AWS Config Services that Lambda Reads Events From Services that Invoke Lambda Synchronously Services that Invoke Lambda Asynchronously
  • 12. STARTUP X 12 How Companies are Using Lambda Netflix Company 2 The Guardian Financial EnginesFinancial EnginesThe GuardianNetflix iRobot
  • 13. STARTUP X 13 Netflix Streaming Media Bohemoth 7 Billion Hours of Video to 50 Million Customers Across 60 Countries. Use event-based triggers to help automate the encoding process of media files, the validation of backup completions and instance deployments at scale New abstraction layer that gets above what they’ve used In the past for more efficiency, cleaner logic for better control of their systems. Rules-based self-managing infrastructure
  • 14. STARTUP X 14 SWOT Neil Hunt Chief Product Officer at Netflix
  • 15. STARTUP X 15 iRobot IoT Vacuum Device Making Pets Bearable 20 Million iRobots Worldwide Sending Lots of Data. Gartner forecasts that there will be 20.4 billion “connected things” in use worldwide by 2020. Rapid growth necessitated solution to scale more quickly and allow for more direct control Uses 25 AWS services to run the Roomba vacuum Serverless architecture based on AWS IoT and AWS Lambda, iRobot is able to keep the cost of the cloud platform low, avoid the need for subscription services, and manage the solution with fewer than 10 people.
  • 16. STARTUP X 16 SWOT iRobot Architecture
  • 17. STARTUP X 17 Financial Engines Computational Engine Used to Automate Investment Portfolio Management Serves 9 Million People Holding $1.2 Trillion in Assets 94% savings in hard costs. Replaced 50 IPO servers running in 21 different environments with four Lambda endpoints that handle all the traffic. Near-zero downtime and near-zero performance degradation while serving 200–300 million IPO requests per month at rates of 60,000 per minute during heaviest traffic, which can reach 10 times normal traffic
  • 18. STARTUP X 18 The Guardian UK News Provider Runs The Guardian & The Observer 60K people worldwide receive The Guardian newspaper. Uses AWS Step Functions for Workflow Processing Development team relied on disparate distributed systems to store customer data. Translation: new customers not receiving their paper Used step functions to coordinate invocation of Lambda functions. This makes it easy to orchestrate application and business processes in an automated, reliable way.
  • 19. STARTUP X 19 SWOT The Guardian Architecture
  • 20. STARTUP X 20 Demo C# with .NET Core using Visual Studio
  • 21. STARTUP X 21 SWOT Install AWS Toolkit in Visual Studio 2017 or 2019 from Manage Extensions
  • 22. STARTUP X 22 SWOT Create a New Project and Search for AWS
  • 23. STARTUP X 23 SWOT Under Configure, Input Project Name, Location, Solution & Solution Name
  • 24. STARTUP X 24 SWOT Select an AWS Blueprint That You Want Your Function to Follow
  • 25. STARTUP X 25 aws-lambda-tools-default.json Holds Configuration Information
  • 26. STARTUP X 26 function.cs Holds the Function Code to Invoke
  • 27. STARTUP X 27 Right Click on Project & Select Publish to AWS Click on the User Icon to Enter AWS Account Details to Pair Visual Studio Also Select Region You are Uploading to and the Language Runtime
  • 28. STARTUP X 28 Under Advanced, Set the IAM Role, Environmental Variables & Config Settings
  • 29. STARTUP X 29 You’ll See It Uploading Your Function to AWS
  • 30. STARTUP X 30 After the Successful Upload, You Should See the Function in the AWS Console
  • 31. STARTUP X 31 Finally, Test Your Function from Within Visual Studio
  • 32. STARTUP X 32 Resources Going Serverless with AWS Lambda The companion article I wrote for Business 2 Community. https://aws.amazon.com/free/ AWS Toolkit for Visual Studio https://aws.amazon.com/visualstudio/ Deploy Existing .NET Core Web API to AWS Lambda https://aws.amazon.com/blogs/developer/deploy-an-existing- asp-net-core-web-api-to-aws-lambda/ AWS Free Tier Try Lambda out yourself on Amazon’s dime. https://aws.amazon.com/free/ Creating an AWS Lambda Service with C# https://medium.com/tutorialsxl/creating-aws-lambda-service- in-c-da14989ae1cb
  • 33. STARTUP X 33 Thanks Email: [email protected] Twitter: aspprogrammer LinkedIn: /in/softwarearchitect http://markrunyon.com https://improving.com

Editor's Notes

  • #3: Improving booth giveaway Career opportunities AWS Certification & Amazon Partnership
  • #4: > What/Why of Serverless Flavors of Serverless > AWS Lambda History Languages Supported Using Lamda with Other Services Composition of a Lambda Function > Companies Using Lambda 4 Companies Using Serverless to Fuel Rapid Growth, Drastically Cut Costs & Solve Pain Points > Demo Console & Using Visual Studio
  • #5: Not a fan of the name. Where are the servers? What is running my code?
  • #6: Azure Functions - .00001666
  • #7: Google - only supports NodeJS & Python, slow product development, Azure – more language support PHP, F#, Bash, Typescript, Powershell (experimental) on premise functions run workers wherever you want AWS - unofficial support Haskell, Rust, Elixir, F# (.NET Core) Kotlin, Clojure, Scala, and Groovy (JVM) AWS pure cloud whereas Azure has been a hybrid since the beginning – AWS Outposts and VMWare Partnership (COO)
  • #8: https://searchaws.techtarget.com/blog/AWS-Cloud-Cover/AWS-Lambda-serverless-platform-holds-center-stage-for-devs https://www.business2community.com/cloud-computing/8-ways-aws-beats-azure-in-the-cloud-02190398 70% number is a year old. Probably closer to 60-65% but AWS market share alone would suppor that. Better Integration with AWS – John’s Alexa Skill run by Azure Functions Reverse goes for Azure – Better Integration with Microsoft
  • #9: https://docs.aws.amazon.com/lambda/latest/dg/lambda-releases.html Java 6/15 : Python 10/15 : Node.js 4/16 : Go 1/18 : Ruby 11/18
  • #10: Unofficial support Haskell, Rust, Elixir, F# (.NET Core) Kotlin, Clojure, Scala, and Groovy (JVM) No noticeable difference on warm starts
  • #11: event — A key-value pair dictionary of ‘trigger data’ that Lambda passes to the function. context — AWS internal information such as AWS request ID, Lambda expiration timeout, and Log info. callback — A standard async JavaScript callback handler.
  • #12: 18 AWS Services Currently
  • #16: First internet connected robot September 2015 Large spikes in traffic when customers first use Roomba following Prime Day A house knows what to do and simply acts accordingly use visual simultaneous localization and mapping (vSLAM) technology to navigate an entire level of a home. As the Roomba vacuums, it builds a map of the home, and it is this map that could provide the foundational information needed to help a smart home understand itself and enable truly seamless, autonomous home automation.
  • #22: It will force you to shut down and restart Visual Studio before you can use the toolkit
  • #34: Slideshow will be posted to Twitter shortly after we wrap up. Business cards