There is a web form with 10 servers running IIS, each one of them has the same web site with the same WCF I
Service (which exposes some functionality to read / delete cache, sessions, application variables, other internal data)
On some other web servers I have an "administration" web application that supports WCF services For the client is up
What is the best way to create and manage proxies for this type of architecture?
It is recommended to consume WCF services from a web farm server if the new server is available with the WCF service, then there is no need to compile the client application again?
Can you point me to some resources where some similar setup has been shown?
Thanks in advance
If the service is identical on more than one server then this is easy Provide the endpoint address when opening the connection;
MyHelloServiceClient proxy = New MyHelloServiceClient ("myServerNameorIP");
There is an optional parameter in the constructor for proxy (assuming you are using a proxy generation) that takes the name of a server, or an endpoint address.
Then all you need is a list of the servers from which you can choose.
Comments
Post a Comment