Overblog
Edit page Follow this blog Administration + Create my blog

Recently, 12th May saw Microsoft announcing ASP.NET’s next generation which is known as ASP.NET vNext and it incorporates cloud optimized versions of Entity Framework7, SignalR3, Web Pages, Web API and MVC6. This framework is composable as well as lean, making it perfect for building of cloud as well as web applications. It is totally open source; currently it is in preview mode. MVC 6 is a part of this initiative which is a fundamental representation of the way web frameworks are constructed as well as deployed.



Web Pages, MVC as well as Web API have been integrated under a single framework. Between these three a common programming approach is followed which is a single programming model for services as well as web sites. This framework is known as MVC 6; some features are given here.

Features of ASP.NET vNext and MVC6

  • There is a new project extension called project.json which helps list all application dependencies along with startup class instead of Global.asax.
  • MVC, SignalR, Entity Framework, Web Pages and Web API come in new versions which are cloud-optimized.
  • This cross platform is open source; it may run on Linux, Mono and Mac.
  • The platform can use Roslyn compiler for dynamic compiling of code which will allow the developers to edit code file; the changes can be seen whenever the browser is refreshed. There is no need for rebuilding or stopping of the project.
  • The framework has built-in dependency injection. Dependencies can be registered by using the preferred IoC container.
  • Proper side-by-side deployment is supported by it. If cloud-optimized subset of NET vNext is used by the app, then all the dependencies can be deployed through uploading of bin to environment hosting. This helps you update the app without other applications being affected on the very same server.
  • This version is host agnostic, allowing the hosting of apps in IIS or in custom process self-hosting can be done.
  • According to design, the apps are actually cloud ready. The behaviour of services like caching as well as session state will be adjusted according to hosting environment- traditional hosting or cloud environment. Dependency injection is used behind the scenes so that the app can be provided with correct implementation for such services for traditional hosting or cloud environment. This will allow easy movement of apps to cloud from on-premises, since there is no need for changing of codes. Cloud Optimized Framework allows you to include copies of Core or even Mono CLR with the website. There is no need for upgrading .NET on the whole machine just for a single website. Different variations of CLR can be had for varying websites that run side by side.
  • System.Web and MVC 6 are not dependent on each other. Roughly 30K memory is consumed by a normal HttpContext object graph per request; when you work with small JSON-style requests, the entire process becomes very costly. MVC6 reduces it roughly to 2K. This results in leaner framework with lower memory consumption and faster start-up time.
  • There is no actual building in the build process. There is no generation of binaries, thus the type checker is merely run so that there are no warnings or errors for addressing. Instead compiling of the code is done in an as-required basis or on the fly. This allows faster iterations, especially for large websites.
  • In this model, there is no referencing of individual libraries by the projects. Instead NuGet Packages are referenced. These may contain several versions of library which are divided by the target platform. This can be leveraged during runtime so that it may be decided which of the following options- Mono, Core CLR or Full .NET version of the given library has to be loaded.

Currently the preview version is available which seems to be quite promising for developers. There are other available features to help them as well which are expected to make the entire process enjoyable. To get maximum benefits of .Net, you may consider hiring services of a certified asp.net application development company.

We provide .net development services. If you would like to hire offshore developers from us, we would be glad to assist you at Mindfire Solutions.

Tag(s) : #ASP
Share this blog
Repost0
To be informed of the latest articles, subscribe: