2

We're in the process of trying to layout a new net topography for our system. We currently host our WCF as a windows service which exposes HTTP, HTTPS, NET TCP, and now AJAX Service endpoints...

Does anyone know if it would be possible to move our WCF into IIS while still having those same exposed end points AND take advantage of IIS Clustering and NLB? Can those exposed end points be part of the NLB? Not sure how it works, I've been doing some research but can't find anything that addresses those concerns.

I'm a little new to WCF and IIS and we're currently in the research phase of this project so any opinions or suggestions would be welcomed and greatly appreciated.

Has QUIT--Anony-Mousse
  • 76,138
  • 12
  • 138
  • 194
Franco Trombetta
  • 207
  • 1
  • 5
  • 14

1 Answers1

2

You can move your service hosting from Windows services to IIS as long as you have WAS turned which will be required for tcp bound requests.

You will have to reconfigure your services to support load balancing so take a look at the articles below as a helpful starting point about load balancing.

Things to Consider When Implementing a Load Balancer with WCF

Load Balancing with the Basic HTTP Binding

Questions to consider:

Do you use session enabled contract? Does the service behavior use PerSession? Do you have reliable messaging turned on? Session and reliable session are local to a particular server so failover requires a new session be created. The client has to initiate this by creating a new channel (proxy).

Other helpful articles:

Unable to connect to Windows Server 2008 NLB Virtual IP Address from hosts in different subnets when NLB is in Multicast Mode

Petar Vučetin
  • 3,555
  • 2
  • 22
  • 31
  • do you know if NLB works with a wcf basicHttpBinding hosted as a windows service? – gog Aug 21 '14 at 19:11