Академический Документы
Профессиональный Документы
Культура Документы
NET MVC
When we look around in today's world, what we see is devices all around.
Devices from mobiles to tablets to computers surround us and now the world
is talking about internet of things. IOT means communicating between
devices where each device will provide some relevant information to other
so as to provide a customer with highest level of service. Example can be a
Phone providing information about the user reaching home in around 10
minutes so that the AC can switch-on itself.
So here, when we can speak about communication or talk about internet and
with internet; comes a world that suddenly seems much smaller than it is.
Websites and applications are the main medium/interface using which
people share and get information with each other. So how do this happen? To
make a website we need a platform that is robust and reliable enough to
handle huge traffic (people coming in to view website), should deliver better
performance, provide enterprise level security and importantly should have
minimal up time(time from development to production).
What to choose and why?
Important question that comes into picture now is what should be used to
build such an application. There are various technologies like Java, Php,
Python, and Node.js to name a few. So what is the advantage of using .net
over them? Main advantage of using ASP.NET is the time that it takes to build
an application from on paper to the actual server. It is far less than that of
java. Then comes the fact that we can use any language from C#, F#, C to
C++ to build components all the languages mentioned are compiled
languages which gives us an advantage over interpreter languages like
Python, JavaScript (nodejs), etc. Yes, there are compliers that are built to
compile languages like Python but the ASP.NET supports concurrency and
2. Another major feature is use only what you need i.e. everything now is
a middleware so we can now plug-in a piece of code that we want to
run for a request. This means that we will only register the features
that we need and the MVC will load them on startup. Hence, a
performance improvement since we are only running what we need. If
we do not need sessions for our website, we will not add them to our
start-up and hence will save our processing of sessions middleware.
5. All the configuration files are now in json. What is the advantage of
this? Advantage is that json format consumes far less space than xml
when we consider huge files. Also reading a json file is much faster
than an xml file. In the end, it means better performance for the
application.
6. One major feature is that now we do not use System. Web for Http
Context. Also now, the Http Context will hold about 2kb of data instead
of 30kb. This means further performance increase as now we would
have to process far lesser data on every request. Also far, less data
would be transferred between method calls this in turn enhances
performance.
7. MVC till now did not had a perfect replacement for user control that we
use to have in web forms, but now with the introduction of View
Components it has provided a solution. View Components act like mini
controllers with better separation of concerns and usability. They are
invoked like calling a function.
8. The crucial part is, it's also open source.
Apart from the features mentioned above there are also list of features that
are currently in process, hence will update the article as and when they
come into picture. Also there is some document management like library
that is built which is taken as a reference from python.
Original Source:
http://www.advancesharp.com/blog/1154/exploring-what-isnew-in-asp-net-mvc