Search⌘ K
AI Features

AWS Serverless Application Project

Explore how to build serverless applications on AWS Lambda using ASP.NET Core and C#. Understand the project setup, key dependencies, and how to implement web API endpoints that run efficiently in a serverless AWS Lambda environment.

What does a serverless application look like?

A serverless application can contain more than one function handler and perform several different functionalities. When it comes to .NET, a serverless application is an ASP.NET Core web application hosted within AWS. Usually, it can be launched as a standard ASP.NET Core web application. However, it has some additional dependencies that allow it to run on AWS.

The playground shows an example of a serverless application. This is an ASP.NET Core Web API application with a calculator controller that allows us to perform various math operations on two numbers.

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*"
}
AWS serverless application project

A serverless ASP.NET Core application works differently than other AWS Lambda application types. Here’s a diagram of the flow.

ASP.NET Core application hosted on AWS
ASP.NET Core application hosted on AWS

Essentially, it works the same way as any other ASP.NET Core web application. The key differences are that it’s hosted in an AWS Lambda environment and it’s serverless. We have a standard web application that can dynamically scale ...