Will a request in IIS run on a single thread?

前端 未结 4 971
情书的邮戳
情书的邮戳 2020-12-10 15:38

We have a system that runs in IIS.

The system should always run using the same \"culture\", but we cannot rely on the server settings being set correct.

One

4条回答
  •  再見小時候
    2020-12-10 16:39

    If you know you want the culture to stay the same for all threads, then that should be a fine approach.

    However, if you need to set the culture on, say, a per-request basis that may be different from one request to the next, that can potentially not be a reliable approach. Under high load, we have seen threads reused for multiple requests and requests migrated from one thread to another, leaving their culture (and other threadstatic info) behind.

提交回复
热议问题