89 points · by jeffbarr · 14y ago · 36 comments
As one of my colleagues mentioned, we are hiring (currently 516 open jobs on the AWS team). Here's a list that's easier to read:
http://awsmedia.s3.amazonaws.com/jobs/all_aws_jobs_list.html
(Sorry Jeff, I couldn't resist)
http://www.amazon.com/gp/jobs/ref=j_sq_btn?keywords=&cat...
(sorry Jeremy, coudln't resist) :-)
Come join us and be part of the fun that is AWS: http://aws.amazon.com/careers/
If you can name it, we are probably hiring for it.
I was under the impression that end users typically talked to DNS cache servers rather than directly to the authoritative servers in the domain's registration. If that's true, how can AWS provide different records based on the requesting user?
If end users are talking directly to one of the ~4 authoritative name servers listed in the registration, how does that scale to billions of queries?
Then, that DNS server can decide where the other end is and provide them with the correct IP.
You're right that most users use a caching DNS server, so it is actually the location of the DNS caching server. Of course, since most users choose a DNS server close to them (usually, their ISP), this should still result in a correct approximation. If you're using, say, 8.8.8.8 (google public dns), that's (probably) more than 1 server -- you're using the closest one to you. So then AWS will provide you with the closest AWS region to the closest Google DNS server, which is hopefully the closest one to you.
You are right that a DNS server sees the query coming from the resolver instead of the user. So how does it pick the region closest to the user? As the blog post describes, we measure latencies from client networks to AWS regions and we also have a mapping of which resolvers are used by which client networks. If you put both of them together, you can compute which region is closest to the users of the resolver.
How did you build this map?
I can think of a few complicated ways to go about it, but I'm wondering if there is something easy I'm missing.
Nearest in terms of AS path. This can be wildly different than latency as BGP isn't really implemented with cost/performance in mind. Anyone relying on anycast to answer their latency story is doing a lazy/poor/ignorant job of it.
> You're right that most users use a caching DNS server, so it is actually the location of the DNS caching server.
And another case where end users would be better served by providers implementing edns client-subnet extensions. This would allow savvy content providers to route to the actual end user, and not their resolver.
It sounds like here Amazon is doing unicast DNS, but dynamically changing the response depending on the IP address the query comes from.
Since they have a big database of IP addresses and latency, they can choose the best response.
The missing thing here is that they don't get the IP address of the client computer, only the DNS server. In many cases that (along with geo-location of the DNS Server) might be enough, but it is possible to do better. I'd speculate what they do here is correlate the IP addresses with the DNS server either by subnet or by using active measurement techniques.
There's still no good high-availability story for region-wide outages, and there won't be until they do this.
They need to just stop having region wide outages...
I guess an alternative might be to do some kind of NAT for unbound anycast addresses which forwards packets to an available region, but that is hugely complicated.
The only thing I'm curious as to is what kind of measurements is Amazon gathering, and how is it gathering them? Is it using ELB, and looking at TCP latency (delta time between SYN/ACK? Curious minds want to know...
http://blog.bitnami.org/2011/12/monitor-your-estimated-aws-c...
[1] https://forums.aws.amazon.com/thread.jspa?messageID=249000
If this is so implausible then why can't they provide a cap? It feels to me that they are purposefully trying to capitalize on people's mistakes. Call me paranoid but it is honestly the primary reason why I've been wary to play with AWS.