Hello I'm writing scala code to pull the data from API. Data is paginated, so I'm pulling a data sequentially. Now, I'm looking a solution to pulling multiple page parallel and stuck to create WSClient programatically instead of Inject.
Anyone have a solution to create WSClient ?
I found a AhcWSClient(), but it required to implicitly import actor system.
No need to reinvent the wheel here. And I'm not sure why you say you can't inject a
WSClient. If you can inject aWSClient, then you could do something like this to run the requests in parallel: