AWS Builder Center

The Outage My Users Never Noticed: What Route 53 Health Checks Taught Me About Failover

How Route 53 health checks, a meaningful health endpoint, and a 60-second TTL turned a user-reported outage into automatic failover — and why testing the standby matters.

yub 😎
The first time a server of mine went down, I found out from a user. Not from an alarm, not from a dashboard — from a message saying "your site is down." The server had been dead for almost an hour. That was the day I stopped treating DNS as something you set once and forget.
A few weeks later I rebuilt the setup with Route 53 health checks and DNS failover, and the next outage played out completely differently: one endpoint failed, traffic moved to the healthy one, and I found out from an alarm instead of a user. Nobody wrote to me. That silence was the whole point.
How DNS failover actually works
The idea is simple, and that is why I like it. Route 53 periodically sends health checks to your endpoint — an HTTP request to a path you choose, every 10 or 30 seconds. If the endpoint stops answering (or starts answering with errors), Route 53 marks it unhealthy and stops returning its IP address in DNS answers. Traffic goes to the healthy record instead.
Two details mattered more than I expected. First, the health check should hit a path that proves the app is actually working, not just that the server answers on port 80. I use a lightweight /health endpoint that checks the database connection too — a server that returns 200 while its database is down is not healthy, it is just polite.
Second, failover is only as fast as your TTL. If your DNS record has a 5-minute TTL, resolvers can keep handing out the dead IP for up to 5 minutes after failover. I dropped the TTL on the failover records to 60 seconds. It costs a few more queries, but failover that takes five minutes is barely failover at all.
Active-passive, the honest way
My setup is active-passive: one primary region serves everything, one standby region waits. I know active-active sounds fancier, but for a small project, keeping two regions in sync in real time is a whole second project. Active-passive with automated failover was the honest trade-off: I get real protection against a regional outage without pretending I run a global platform.
The standby is not idle decoration, either. I run the same health check against it, and once a month I flip traffic to it on purpose — a game day, even if it is just me clicking a button on a Sunday. A standby you have never failed over to is a hope, not a plan. The first time I tested mine, the standby's database credentials were stale. Better to learn that on a Sunday than during a real outage.
What failover does not fix
DNS failover is not magic. It does not help if the problem is in your application code — both regions will fail the same way. It does not help if your data is only in one region and the standby has nothing to serve. And it does not help users whose resolvers ignore low TTLs, which some do.
It also took me a while to accept one uncomfortable truth: failover can fail over to something broken. That is why the health check path matters, and why I test the flip. Automation without testing is just a more confident way to be wrong.
My takeaway
If you have one server and one DNS record pointing at it, you have a single point of failure with a nice name. Adding a health check and a standby record is maybe an afternoon of work, and it turns "the site is down" into "an alarm fired and traffic moved." That is the cheapest resilience upgrade I have made on AWS.
When was the last time you tested your failover — not just configured it, but actually flipped traffic and watched what happened?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article