WCF Windows Services Failover Strategy

I need to device a Failover mechanism for the following scenario.

 I have a WCF windows service (An auto-start producer service whose method returns values every 15 seconds) which would be having 4 instances (Geo Location "A" would have a Primary (PA) and Secondary (SA) and Geo Location "B" would have two instances Primary (PB) and Secondary (SB) ). At any given time, one instance in each location should be up and running( i.e. Active) and the other is Inactive.

Considering one location at a time, Secondary(Inactive) should be able to PING the Primary (Active) for health info. and if its not found to be "healthy", then the Secondary(Inactive) should activate itself and start producing the values periodically.

I would appreciate your expert opinions on how to achieve the same. What is the best way to communicate between the two WCF Windows Services?

Regards!
InquisitiveMindAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DarrenDConnect With a Mentor Commented:
0
 
DarrenDCommented:
Hi,

You could look at Routing. http://msdn.microsoft.com/en-us/library/ee517422.aspx

Might be handy instead of pinging servers. See the Error Handling section.

Cheers,

Darren
0
 
InquisitiveMindAuthor Commented:
Hi Darren,

Thanks for the reply, but I've to use the application way of checking if the primary service IsAlive or not. Any ideas on this approach?
0
All Courses

From novice to tech pro — start learning today.