How to make a very large number of simple get requests with StandaloneAhcWSClient in Scala? (it's the default http client bundled with Play2 framework).
In my case, I got ~100K GET requests to make to an external API. Future.traverse() does not cut it, is there a better approach, maybe a way to process the list of url sort of like a stream?
Here's the code I have now: https://scastie.scala-lang.org/HgrIyR23TmG12j3MzMCxUw
It works up to a certain number of urls in the list, but breaks with a large number with an exception java.lang.IllegalStateException: failed to create a child event loop
Here's what I ended up with:
With following build.sbt: