angularjs - Do asp.net mvc apicontroller requests require async handling in addition to angular $resource -


if i'm using asp.net mvc apicontrollers backing services layer , angular front-end using $resource, need use asp.net mvc async pattern?

i understand $resource asynchronous , doesn't block ui, benefit using asp.net mvc's async keep server blocking requests when have many clients doing i/o intensive tasks?

thanks! scott

yes, benefit, these orthogonal concerns.

javascript uses asynchronous i/o because single threaded default (barring web workers).

how server manages incoming requests of no real concern ui... unless of course have large number of concurrent users.

asynchronous calls on server asp.net means when i/o operation has been initiated, thread can released other work. when network call, or disk read completes, server can resume processing of original request. the result web server able pack more requests same period of time if calls blocking.

again, isn't tied browser, or angular in way.


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -