Skip to content
‹ 30-Day Drill

W2: One Region Cannot Connect, Another Is Fine

Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.

W2: One Region Cannot Connect, Another Is Fine

CategorySending users to the right place

Scenario

Interviewer Users in Europe cannot connect. Users in the United States are fine. The servers in both places report healthy. What broke?

In plain words

The service runs in two parts of the world. Both sets of servers are working, but people in one part cannot get in. The question asks what sits between those people and their servers that could fail for them alone.

The interviewer wants to hear that you would look at how users are directed to a region, and how you would prove where European users are being sent.

Words you need

WordWhat it means
RegionA group of data centres in one part of the world, such as Europe.
Geo-routingAnswering a user's request for an address with the servers nearest to them.
CDNContent delivery network: computers spread around the world that sit close to users and pass requests on.
Health checkA small test request sent every few seconds to see whether a server, or a whole region, is working.
BGPThe system networks use to tell each other which addresses they can deliver traffic to.

Key Insight

If the servers are healthy and only one region's users fail, the servers are not the problem. Something that decides where those users go is sending them to the wrong place, or nowhere.

Picture a post office that sorts letters by postcode. If the rule for one postcode is wrong, every letter for that town goes astray, while the town itself is fine.

Explanation and Investigation

Four things that direct users to a region

WhatHow it can fail for one region
Geo-routing in DNSHands European users a far-away address
CDNIts European locations are faulty or misdirected
Global load balancerWrongly marks Europe unhealthy and stops sending users there
BGPEuropean networks lose the path to your European site

1. Find out where European users are being sent

dig app.example.com +short                        # run this from a computer in Europe
dig app.example.com +short +subnet=203.0.113.0/24   # or ask as if from a European network

If the answer is an address in the United States, the geo-routing rule is wrong. The address 203.0.113.0/24 is a stand-in; use a real European network range.

2. Look at the global load balancer

Does it show Europe as unhealthy? A health check that fails for its own reasons, such as a changed test path, can take a whole region out of service while the servers are fine.

3. Look at the path between networks

mtr -rw app.example.com     # each hop on the way, with delay and loss, run from Europe

If traffic from Europe now crosses the ocean, connections become slow and many time out. Internet providers publish test pages, called looking glasses, that show the path from their network.

4. Fix what you found

What you foundWhat to do
A wrong geo-routing rulePut the previous rule back
A health check failing by mistakeCorrect the check and return Europe to service
A faulty CDN locationSend users around it until it is repaired
A lost network pathWithdraw the wrong route announcement

Model Answer

Interview-ready answer Both sets of servers are healthy and only Europe fails, so I would look at how users are directed to a region. I would look up the service's name from Europe and see which addresses come back. I would see whether the global load balancer counts Europe as unhealthy, and whether the path from European networks has changed. Then I would review recent routing changes and put back whichever one sent European users the wrong way.