zlacker

[parent] [thread] 5 comments
1. lamont+(OP)[view] [source] 2023-08-15 05:00:35
Any DNS resolver libraries have a 4.5 second timeout? Maybe their infrastructure is just rotting.
replies(2): >>minima+D >>runlev+36
2. minima+D[view] [source] 2023-08-15 05:08:46
>>lamont+(OP)
It'd be weird that it's limited to specific outbound domains in that case.
replies(1): >>lamont+R4
◧◩
3. lamont+R4[view] [source] [discussion] 2023-08-15 05:52:11
>>minima+D
domains load balanced across different servers in some overly complicated distributed topology with only one of them busted?

although seems unlikely it just happens to be the NYT.

replies(1): >>djvdq+hg1
4. runlev+36[view] [source] 2023-08-15 06:07:55
>>lamont+(OP)
glibc defaults to 5 sec, but the server wouldn't need to resolve the redirect domain -- that'd be the client's job. Unless it's doing so for some proprietary reason, of course.

Or did you mean failing to resolve some internal service's hostname?

replies(1): >>lamont+8w1
◧◩◪
5. djvdq+hg1[view] [source] [discussion] 2023-08-15 15:33:50
>>lamont+R4
I don't think it's a problem with rotting infrastructure. Using curl those requests are quick, unless you pass user-agent from browser. 4.7s with firefox user-agent and 1.3s without it. Using twitter link to the same NYT article.
◧◩
6. lamont+8w1[view] [source] [discussion] 2023-08-15 16:50:49
>>runlev+36
> Or did you mean failing to resolve some internal service's hostname?

Yeah, something more like that where the internal service is somehow 'sharded' due to some overly complicated distributed database nonsense, and there's a DNS lookup that is failing. Of course that'd mean the DNS lookup wasn't cached, so you're taking that normal latency on every single hit, which would be terrible architecture. The curl-vs-wget performance isn't explained by that though (although that's a bit weird in and of itself, and might suggest that they had to allow that for some internal tool that they didn't want to punish).

> glibc defaults to 5 sec,

The timeout being close to 5 seconds is what made me wonder about it. Its just off though.

[go to top]