Sometimes there is a lot to do when this action is called. Many times, more needs to be done than needs to be done to create the following HTML for the user. To make the user faster, I want to do only what I need to do to get their next view and send it, but still do more things after that. How can I do this, multithreading? Should I worry then that different threads do not step on each other? Is there any built-in functionality for this type of thing in ASP.NET MVC?
As already mentioned, you can use the spawned thread to do this. I would make sure that the "criticality" of several edge cases:
Just food, although for other issues you may need to contact.
, ?
!
, , ASP.NET ( ) . , , .
ASP.NET MVC?
.net ( Task Async CTP,...).
Task
, , . , , , , .Net Async, ThreadPool . , , , .
- , , , .Net, , ( -, IIS ).
- MSMQ. - . - , .
, . , .NET 4.0:
public ActionResult DoSomething() { Task t = new Task(()=>DoSomethingAsynchronously()); t.Start(); return View(); }
MSMQ . , ASP.NET, Asynchronous out of process . .
MSMQ ASP.NET . , ( ) , - . , IIS, threadpool - , , .
, : ASP.NET MVC
Source: https://habr.com/ru/post/1773645/More articles:ActiveRecord subclasses not showing up - ruby-on-railsJQplot: blank plot when printing IE - jqueryArgument: NotFound Error Using Windows Authentication for Silverlight - iis-7Enable / disable the button until the item is selected in the list? - validationHow to get rid of strongly typed tables and data - visual-studio-2008Header Optimization - c ++The value of the input form form for "" does not clear the spaces - javascriptколичество совпадений в двух последовательностях с STL - c++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1773649/linq-sql-query-help-doing-a-distinct-on-two-columns-together&usg=ALkJrhhip3Rj6AFhE1D9tHkxR8_zfeiL9wPHP MySQL error handling - phpAll Articles