DNS Failover Routing for .NET Windows Service

0

Hi AWS, I have raised the query several times but I haven't received any convincing answer for it so far. This is the follow up request for the question I asked a couple of days back https://repost.aws/questions/QUoRKOK-hFRbeBJxxuZNlJvg/dns-failover-routing.

Currently I am deploying a .NET Windows Service in Active/Passive Mode where the active server is in one region and the passive server is in another region using CI/CD with GitHub Actions. Having said that the deployment happened successfully on both the servers, but I want the service to be running actively on one server at a time i.e. the Primary server and the Standby/DR server will come into play when the Primary server goes down.

To get more insights on deploying a Windows service using DNS failover routing I asked ChatGPT about the same but it said there will be a difference when it comes to deploying a .NET windows service in active/passive failover. My question is knowing the fact that the service doesn't have an endpoint i.e. IP address or Domain then how I am going to create the health check for the same.

So please suggest me a better solution with step-by-step implementation for the same.

profile picture
已提问 4 个月前173 查看次数
1 回答
1

Hey Arjun,

I’d suggest building in a a health check endpoint using something which is part of .NET which is what this is designed for, for your scenario. The load balancer or DNS probes the endpoint and it returns 200 if your .NET service is healthy and something else if it’s not.

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-8.0

profile picture
专家
已回答 4 个月前
  • Hi Gary Mclean, first of all thanks for answering. I have few questions though:

    1. Is there any similar capability for .NET Framework 4.7?
    2. Is there a way we can find the endpoint for Windows Service like IP address or Domain Name as I need to add it while creating the Health checks in Route53.
    3. Is it only possible with Containers like Docker as currently our applications are not Dockerize.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容