Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i'm new to MVC (nooob), and following MS Tutorial, and its just introduced async Task<actionresult> and shows the benefits. Does it mean that you should use async Task all the time rather than the normal ActionResult, (which is how it started the tutorial).

If async tasks<actionresult> speed up the performance etc, shouldn't these always be used?

I asked my fellow programmers and they've never seen it done this way so i thought id ask the trusty minds of Code Project.

and i'm assuming i'd still need to use Ajax requests in the future, as the ActionResults are only using for loading each individual page, the actions within the page will be ran using Ajax requests.?
Posted
Updated 4-Dec-14 23:43pm
v2

1 solution

Responsiveness is the main advantage of Async. Ajax async is related with the client(browser) and async Action Result is related with the server.
Why Asynchronous?

With today’s application’s growing more and more connected and also potentially long running tasks or blocking operations such as Network I/O or Database Operations.So it’s very important to hide the latency of these operations by starting them in background and returning back to the user interface quickly as possible. Here Asynchronous come in to the picture, Responsiveness

For speed up the performance you should continue with Parallel Programming

Why Parallel programming?
With today’s data sets growing larger and computations growing more complex. So it’s very important to reduce the execution time of these CPU-bound operations, in this case, by dividing the workload into chunks and then executing those chunks simultaneously. We can call this as “Parallel” .Obviously it will give high performance to our application.

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900