-
One of our applications makes a significant amount of http calls (~1000 per second) to a single external domain using HttpClient. This leads to a high number of What bothers me is that So I wonder what is the official guideline regarding DNS caching, and are there plans to implement DNS cache on the runtime level? Iirc it was provided by now deprecated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
cc: @antonfirsov @dotnet/ncl |
Beta Was this translation helpful? Give feedback.
-
Leaving aside DNS caching, I'm curious why you are creating so many new connections under a steady load? |
Beta Was this translation helpful? Give feedback.
-
pretty much every distro with systems now has dns cache AFAIK. It seems strange that DNS to local server would be hindering connections to external sites. It feels like this is if worth of investigating. |
Beta Was this translation helpful? Give feedback.
For context, there are scenarios which depend on DNS-resolution load balancing, where we have to ask the OS for DNS resolution on each request.
That said, we have Custom DNS in our plans and extending it with cache would make sense. Using
ConnectCallback
is a good interm workaround.Out of curiosity: How did
ServicePoint
implement DNS cache? Didn't it just rely on OS resolution as well?