Web Gardening in IIS 7.5 with WCF services

2.3k Views Asked by At

I have deployed WCF services in IIS 7.5. I want to create a web gardening in IIS, so I follow below steps to do that

On Application pool advance settings, I have set Maximum worker process=2.

My question is to do web gardening I need to change anything on machine.config or web.config file of WCF services?

If yes then what changes I need to do?

2

There are 2 best solutions below

2
On

Are you sure you need a web garden? Because it's a feature that is often misunderstood. This blog entry explains it quite well.

If you really need it, you don't need to configure anything in the config. The services themselves should not need to be aware of the fact they are executed from a garden or even from a farm.

0
On

You will need a web garden when you have a CPU with Many cores and you want to scale your application. Although there is no configuration which is specifically required there are just two things that you should be concerned. 1) There should be no static Variables in Your Service. Please do more R&D on that. 2) Your Services Concurrency Mode should be Multiple so that different threads which will be created should cater the service.