vote up 2 vote down
star
1

I'm learning ASP.NET MVC Framework, From some articles like this, it seems that MvcHandler has only Execute() implemented, there is no asynchronous API implemented. Actually, I don't think Controller has asynchronous API either.

So, ASP.NET MVC doesn't support asynchronous programming? this could be a big hurdle to scalability if the web page needs I/O operation.

flag
add comment

3 Answers

vote up 3 vote down
check

At the moment, async support is not built into MVC. It's on the feature list, but no guarantees as to exactly when it might be released (and in what form).

link|flag
add comment
vote up 5 vote down

After some googling, I found this terrific blog about how to DIY asynchronous ASP.NET MVC. The implementation looks easy and straightforward. I am wondering why ASP.NET MVC team doesn't have this feature at the first time.

http://blog.codeville.net/2008/04/05/improve-scalability-in-aspnet-mvc-using-asynchronous-requests/

link|flag
There's a cut line for features, and inevitably a feature somebody wanted ends up below the cut line. There are tons of "easy and straightforward" things that won't get into v1 because time is not infinite. :) – Brad Wilson Nov 9 at 4:05
add comment
vote up 1 vote down

As Brad mentioned, Microsoft is working on a solution as part of MVC futures. There is also an implementation at: http://code.msdn.microsoft.com/AsyncMvc/Wiki/View.aspx?id=11350

link|flag
add comment

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.