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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠