Link to home
Start Free TrialLog in
Avatar of InquisitiveMind
InquisitiveMind

asked on

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!
Avatar of Darren
Darren
Flag of Ireland image

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
Avatar of InquisitiveMind
InquisitiveMind

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Darren
Darren
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial