What should I know when streaming processing in ASP.NET?

A book on streaming usage for the Winforms application (concurrent programming on Windows by Joe Duffy) has recently been released. This winforms-oriented book is 1000 pages long.

What happens in an ASP.NET thread? I am sure that there are many errors that you need to know when implementing threads in ASP.NET. What should I know?

thanks

+3
source share
7 answers

First, are you talking about asynchronous ASP.NET? Or using ThreadPool / unscrewing your own threads?

ASP.NET, : / , ?

( , IMO) /, ASP.NET. IIS concurrency, , .

ASP.NET. , IIS AppPool . , IIS AppPool . IIS, , Windows. Windows Service , - . , (MSMQ ..), ..

+1

HTTP-, IIS, , , , , - HTTP-. , , - ASP.Net, concurrency , ASP.Net ...

+4

Wintellect PowerThreading. , .NET. = > Power Threading Library

.

+3

.Net, , - ... ASP.net.

ASP.net , , ISAPI ASP.net, , , .

, - , ASP.net.

, , - ....

   Thread thread = new Thread(threadStarter);
   thread.IsBackground = true;
   thread.Start(); 

, : , IsBackground true, , , IIS .

+2

, , - , " " ASP.NET.

, ASP.NET , . , , .

, , .

winforms , ASP.NET. .

+1

ASP.NET . . , . , . , - .

, , . , , , , , .

, , , . .

+1

, .

, (, , HttpContext.Current,...), , .

Similarly for any classes that you create as local variables or fields in these classes and to access the session.

But, as usual, you need to synchronize access to shared resources, for example:

  • Links Static (C #) / Shared (VB.NET).
  • Singletons
  • External resources like file system ... etc.

I have seen alternating errors too often in ASP.NET applications, for example. a singleton is used by several parallel queries without synchronization, as a result of which the user sees the data of user B. Data

+1
source

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