INTRODUCTION TO

ASP.NET CORE

 

Contents

  • What is ASP.NET Core

  • History of ASP.NET Core

  • Features of ASP.NET Core 

  • Advantages and disadvantage 

  • ASP.NET CORE vs Node.js

  • Performance Benchmark

  • References

What is ASP.NET Core?

  • Cross-platform
  • High-performance
  • Open-source web framework for building modern, cloud-enable, Internet-connected apps.
  • Successor to ASP.NET
  • Developed by Microsoft and the community
  • Released in late June 2016

A popular web-development framework for building web apps on the .NET platform.

History of ASP.NET Core?

Anatomy of ASP.NET Core?

In ASP.NET Core everything starts with Program.cs, Main Method. ASP.NET Core apps require a startup class which serves as an alternative to Global.asax in ASP.NET 4.x. It uses a cross-platform Kestrel web server to serve the request and response. Here, IIS/Apache Tomcat/Nginx work as a delegation web server, and used to delegate the incoming request to the internal Kestrel web server.

Architecture of ASP.NET Core?

Features of ASP.NET Core

  • Open-source
  • Full control over HTML and HTTP Requests
  • A unified framework for building web UI and web APIs
  • Cross-platform framework which runs on macOS, Linux and Windows
  • Built-in supports for SPA using client-side frameworks like Angular, React, Vue etc.

Advantages of ASP.NET Core

  • IMPROVED PERFORMANCE

The ASP.NET Core's compiler will eventually optimize the entire code whenever the code is recompiled utilizing the ASP.NET Core framework

  • SUPPORT OF CROSS-PLATFORM

The latest ASP.NET Core allows to easily create web applications which run on Windows , Linux and Mac.

Advantages of ASP.NET Core

  • HOSTING

It has the ability to host on IIS, Apache, Docker or Self Hosting.

  • INTEGRATION OF MODERN UI FRAMEWORK

It support modern, a Client-side framework like AngularJs, ReactJs and React with Redux etc.

Advantages of ASP.NET Core

  • SUPPORTS CLOUD-BASED DEVELOPEMENTS

It gives various kinds of web application developement and IoT Application developement along with mobile back-end

  • SUPPORT BUILD-IN  DEPENDENCY INJECTION
  • There is a build-in support of dependency injection in ASP.NET Core.
  • This supports is not limited to middleware, but also support in MVC as well

Advantages of ASP.NET Core

  • SIDE-BY-SIDE APP VERSIONING

ASP.NET Core runs on .NET Core which supports the simultaneous running of multiple version of applications.

Disadvantage of ASP.NET Core

  • DOCUMENTATION AND TOOLS

The documentation of ASP.NET Core is not great compared to other development technologies.

It is being update very frequently by Microsoft and other contributors for the project

 ASP.NET Core vs Node.js

 

ASP.NET CORE vs NODE.JS
An open-source web framework, and higher performance than ASP.NET, developed by Microsoft and the community. It is a modular framework that runs on both the full .NET Framework, on Windows, and the cross-platform .NET Core. Definition  Uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
C# Language JavaScript
ASP.NET was a Windows platform based framework for a long time, But with the release of .NET Core in 2016, and the first stable release in 2018, the framework has started to run on macOS and Linux as well. Platform Support Node.js is officially supported by Windows, Linux, macOS, SmartOS, FreeBSD and IBM AIX.

 ASP.NET Core vs Node.js

 

ASP.NET CORE vs NODE.JS
Enterprise Web Development Reliable Large scale Web Development
















 
Performance












 
  • Better at handling multiple tasks simultaneously
  • Handling a high amount of traffic with stability, without needing extra server capability.
  • Advantage of the high-speed Chrome V8 engine and single-threaded asynchronous model.
  • It is seen that Node.js handles tasks nicely when no high computation is required, but as the tasks get more CPU-intensive, it loses out to ASP.NET.
  • Observed that the .NET framework works up to 20% faster on the Windows platform compared to Linux

Performance Benchmarks

  • ASP.NET Core is the fastest framework which can serve 2300% more requests per second as compared to ASP.NET 4.6. It's around 20 times faster than Node.js.

Latest Usage Statistics 

  • Node.js comes out to be the most popular tool used by developers and 49.9% of all developers use it, followed by ASP.NET, that is used by 37.4% of developers. Most of these developers work on web applications and enterprise applications.

References 

Made with Slides.com