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
| Category | Sending 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
| Word | What it means |
|---|---|
| Region | A group of data centres in one part of the world, such as Europe. |
| Geo-routing | Answering a user's request for an address with the servers nearest to them. |
| CDN | Content delivery network: computers spread around the world that sit close to users and pass requests on. |
| Health check | A small test request sent every few seconds to see whether a server, or a whole region, is working. |
| BGP | The 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
| What | How it can fail for one region |
|---|---|
| Geo-routing in DNS | Hands European users a far-away address |
| CDN | Its European locations are faulty or misdirected |
| Global load balancer | Wrongly marks Europe unhealthy and stops sending users there |
| BGP | European 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 networkIf 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 EuropeIf 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 found | What to do |
|---|---|
| A wrong geo-routing rule | Put the previous rule back |
| A health check failing by mistake | Correct the check and return Europe to service |
| A faulty CDN location | Send users around it until it is repaired |
| A lost network path | Withdraw 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.