KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've a for comprehension that fetches a comma separated Id List from a web service. Then I use the Id List to make new calls, my problem here is that the Id List can be around 10 000 long and each call is a medium sized XML document. The Web Service end point, or it could be the Play Framework, does't quite like it when I request all the 10 000 at the same time asynchronously as I only get around 500 correct responses. Some pseudo code to highlight the intent. for { respA <- WS.url(url1).get id <- respA.body.split(",") respB <- WS.url(url2 + id).get } yield ... How do I get about to limit the concurrent request to something more feasible?
Tags (comma-separated)
Save Edits
Cancel