Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WCF Windows Services Failover Strategy

Posted on 2012-12-28
3
Medium Priority
?
977 Views
Last Modified: 2013-01-16
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!
0
Comment
Question by:InquisitiveMind
  • 2
3 Comments
 
LVL 18

Expert Comment

by:DarrenD
ID: 38736190
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
 

Author Comment

by:InquisitiveMind
ID: 38738466
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
 
LVL 18

Accepted Solution

by:
DarrenD earned 1500 total points
ID: 38739396
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question