Try
↑ ↓ move↵ openesc close

Interview prep / DNS and traffic steering

Mid · DNS and traffic steering · System design interview question

Some resolvers ignore your TTL. How does that change how you design failover?

Sketch your own answer first, then compare it with the one below.

A strong answer

It means the TTL is a request, not a guarantee. A share of users may keep a dead address for minutes however low you set it.

Design as if some users will be slow to move. Do not make DNS the only failover step. Keep the old endpoint serving or redirecting for a while after a move. Make clients try more than one address and fail fast. Use a stable front, such as an anycast address or a load balancer, so the address users hold does not have to change.

Measure rather than assume. Watch how long traffic keeps arriving at an old address after a change, and plan for that tail.

Sources

Learn it by running it

The dns and traffic steering lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms