Closed szmarczak closed 4 years ago
One of the solutions would be: return the cached entry and update the cache in background.
The cache needs to be a separate LRU cache.
Currently, I see no reason to do this. I'll reopen the issue if someone finds this interesting.
Not anymore. Fixed in 5.0.0
.
It's only about 25-250 op/s (compared to millions of op/s when using TTL or to 20-30k when using
dns.lookup(...)
).I think the reason is that the DNS server does throttling on purpose.