If I set the Maximum Worker Processes > 1 will my singleton objects be shared between the processes?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, .NET objects will not be shared between processes as each process gets its own address space. Also if you’re using in-process caching of any kind (singleton objects is one kind of caching), including in-process session state, it can’t be shared between the worker processes. Having multiple worker processes is similar to having multiple web servers with a load-balancer.