Answer the question
In order to leave comments, you need to log in
How to bypass DNS-Timeout with a huge number of DNS queries?
I'm calling the following code in parallel:
InetAddress address = Address.getByName(domain);
String ip = address.getHostAddress();
Answer the question
In order to leave comments, you need to log in
You can not bring the number of parallel tasks to infinity. This applies not only to computational tasks (which is obvious), but also to input-output (not so obvious, nevertheless, a fact). You need to somehow limit the parallelism. Lots of solutions. One of the best options for even load distribution, for example:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question