In this session, Travis will explore what exactly Serverless infrastructure is, and more importantly how you can build ASP.NET Core applications to take advantage of its low cost and infinite scalability. The following topics will be covered:
- What is Serverless Computing?
- Evolution of Compute
- Advantages and Pitfalls of Serverless Infrastructure
- AWS Lambda
- .NET Core on AWS Lambda
- ASP.NET Core MVC on AWS Lambda / API Gateway
From Toronto .NET Meetup Session: https://www.meetup.com/Toronto-NET-Meetup/events/237920730/
ASP.NET CORE ON
Travis Gosselin | Principal Software Engineer
What is Serverless?
“Does that mean there are no servers?”
.NET Core on Serverless
AWS Lambda and other Serverless Components
ASP.NET Core MVC on AWS Lambda
Dealing with code granularity and using vendor abstractions
DOES THAT MEAN
THERE ARE NO
SERVERS RUNNING IT?
“Serverless architectures refer to applications
that significantly depend on third-party services
("BaaS") or on custom code that's run in
ephemeral containers ("FaaS")”.
Programmer, Loud Mouth, Thought Worker
“Serverless Computing is like this - Your code, a
slider bar, and your credit card. You just have your
function out there and it will scale as long as you can pay
for it. It's as close to "cloudy" as The Cloud can get.”
WHAT IS SERVERLESS?
Serverless: First used to describe continuous integration and source control
servers in “the cloud” (around 2010?).
SaaS Why Do I Care?
• No Servers Provision or Manage
• Never Pay for Idle or “Always On”
• Infinite, Automatic Scaling
• ITS CHEAPER!
EVOLUTION OF INFRASTRUCTURE
“A Spectrum of Compute”
Packaging Execution Run Time Cost
VMs Machine Images Multi-threaded Hours to
Per VM / Hour
Containers Application Container File Multi-threaded,
Per VM / Hour
Serverless Function Code Single-thread,
Per Memory /
AWS Re:invent 2016 – Werner Vogels