Wednesday, 21 May 2014

All You Know about ASP.NET vNext and MVC 6


ASP.NET MVC 6 is a part of the ASP.NET vNext initiative that represents a fundamental change to how Microsoft constructs and deploys web frameworks. It’s main aim to develop a host agnostic framework that minimizes the dependencies on the legacy System.Web infrastructure. According to the Microsoft, System.Web has to remove as it is quite expensive. 30K of memory per request can be consumed by a typical HttpContext object graph. When it works with small JSON-style requests, it simply represents the disproportionately high cost. However, the pre-request overhead drops to roughly 2K with MVC 6 new design.

Microsoft has to eliminate a lot of the overlap between the three frameworks as the Web API and Web Pages are included in it. In order to make deployment easier and more reliable, “vNext will support true side-by-side deployment.” 

Each MVC library required for a given web site will be referenced like a normal developer-created DLL instead of being installed in the GAC. “That means you can update your app without affecting other applications on the same server.”

Azure and PowerShell Based Deployments

Azure is one of the standard ways to deploy websites and thus, Microsoft is heavily pushing it. However, they have realized that developers are doubtful of publishing websites from Visual Studio. So, they will create PowerShell deployment scripts by default. Moreover, this will be helpful for editing Visual Studio that is a basic tool for supporting PowerShell.

Libraries vs. Packages

Now, projects don’t reference individual libraries anymore under the .NET vNext model instead they reference NuGet Packages. As you know that packages comes with various versions of a library that divided by target platform. ASP.NET vNext helps to get leverage to decide at runtime whether to load the Full .NET, Mono, or Core CLR version of a given library. One can also use option Portable Class Libraries.

Full Framework vs. Cloud Optimized Framework
This warning comes into existence as it removes their dependency on System.Web otherwise one can have to stay on the full .NET Framework.The “Cloud Optimized Framework”. One of the best advantages of using the Cloud Optimized Framework is users can add a copy of the Core (or Mono) CLR with your website. One shouldn’t have to upgrade .NET on the entire machine for the sake of one website. One can also have various versions of the CLR for different websites running side by side.



A “high resource-efficient optimization” is supposed to have the Core CLR.

Pay As You Go

MVC 6 is developed on a “pay as you go” philosophy. Each of its features has to be explicitly turned on in the application startup routine. Serving static files needs to call IBuilder.UseStaticFiles. One can also call functions like “app.UseServices” to allow features such as MVC. Routing is developed in the Configuration method. Moreover, MVC 6 routes are same not exactly to MVC 5 routes.

Cross Platform Development

Microsoft is planning and enabling for cross-platform deployment. There are some batch files for major platforms like OS X and Linux are provided to allows package and deploy ASP.NET vNext projects without needing Windows and Visual Studio.

Do you have any Asp.net Web Development project in your mind? Hire Asp.net Web Developer from reliable Asp.net Web Development Company to done your project successfully.

No comments:

Post a Comment