2

I'm using self hosting asp.net web api from a WPF appliaction that serves as a server. I'm wondering what the scaling will be like for many clients when self hosted, does the web api manage a thread pool & recycle those? Or is it single threaded by default? Does it use 1 thread per call or does it have a limit etc etc. Any information on this would be great as well as any information on the configurability of the threading behavior.

4

1 回答 1

1

它使用线程池并对其进行管理。一个调用可能涉及多个线程。如果您期望相当高的请求并发,那么我建议您考虑使用 Owin 来托管您的 WebApi。

于 2013-04-24T11:29:23.173 回答