ASP.NET MVC asynchronous actions: who is waiting for the result?

I am trying to get to know TPL and use it in mvc. Everything looks fine in all manuals (mark the action as async, use await => profit!), But I don’t understand this.

As I understand it, the call chain looks like this: the client sends an http request β†’ the web server receives the request β†’ the mvc action handler finds the controller and action using the routing rules and executes it β†’ the action writes the result in response.

BUT: What kind of magic in the router is waiting for action? Who (and how?) Handles the first asynchronous method in this chain?

+4
source share
1 answer

, :

: , IIS. , mvc- .

. , , - concurrency. , Concurrency/​​ -. HTTP 503.

, , .

0

Source: https://habr.com/ru/post/1605912/


All Articles