Should I add explicit streams to my web api REST methods?

I have created several REST web API methods that will be called by portable / Windows CE clients. Thus, the server can be hit by several (well, it will be more like a question of how many) requests at the same time.

Do REST methods help automatically about this, or do I need to explicitly add stream code so that one client request does not interfere with another?

+4
source share
2 answers

No need - asp.net already has a pool of multiple threads to handle multiple requests at once.

, .

, asp.net: http://www.codeproject.com/Articles/38501/Multi-Threading-in-ASP-NET

Edit

/IO- ( TPL), , asp.net, .

. , , , "REST". : " ". , , , . : http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx

, .

+8

dcastro, , .

, , , , . , .

0

All Articles