ASP 01 Introduction
ASP 01 Introduction
ASP.NET Core is a free, open-source, and cross-platform framework for building cloud-based
applications, such as web apps, IoT apps, and mobile backends. It is designed to run on the
cloud as well as on-premises.
ASP.NET Core is not an upgraded version of ASP.NET. ASP.NET Core is completely
rewriting that work with the .net Core framework. It is much faster, configurable, modular,
scalable, extensible, and has cross-platform support. It is best suitable for developing cloud-
based such as web applications, mobile applications, and IoT applications.
Key Features:
Cross-Platform: ASP.NET Core applications can be developed and run on Windows,
Linux, and macOS, providing flexibility and broad reach.
Hosting Options: Applications can be hosted using various servers, including:
Cloud Services: Seamless integration with cloud providers like Microsoft Azure.
There is no web .config file. We can store the custom configuration into an
appsettings.json file
ASP.NET Core Web API: For creating RESTful services accessible by various clients,
including browsers and mobile devices.
ASP.NET Core Razor Pages: For developing page-focused web applications with a
simplified coding model.
ASP.NET Core Blazor: For building interactive web UIs using C# instead of JavaScript.
Cross-Platform No No Yes
managing HTTP requests, user authentication, database interactions, URL routing, and
output formatting (HTML/JSON).
Kestrel: The cross-platform web server for ASP.NET Core, lightweight and efficient for
handling dynamic content.
Reverse Proxy Servers: These servers forward client requests to backend servers and
return responses to clients.
Kestrel
Overview:
Kestrel is the cross-platform web server for ASP.NET Core.
Responsibilities:
Handles HTTP requests: Handles incoming HTTP requests and responses.
Use Case:
Ideal for development and internal networks.
Responsibilities:
Load Balancing: Distributes incoming requests across multiple servers.
Use Case:
Used in front of Kestrel to enhance security, load balancing, and other enterprise-
level requirements.
Kestrel:
Serves HTTP requests directly.
Should be used behind a reverse proxy for additional security and stability.
Reverse Proxy:
Acts as an intermediary between clients and Kestrel.
o Key Features:
o Key Features:
o Key Features:
4. app.Run();
o Key Features: