Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ASP.NET MVC Framework support asynchronous page execution?

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.

like image 384
Morgan Cheng Avatar asked Nov 09 '08 03:11

Morgan Cheng


1 Answers

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/

like image 132
Morgan Cheng Avatar answered Sep 20 '22 21:09

Morgan Cheng