Sunday, 4 June 2017

Calling APIs in parallel in node.js

I need to call same REST service four times with different ID in parallel and combine the results in one JSON . Whats the best approach ?

Lets say I have an API /getUser and needs to make the below calls in parallen

localhost:8080/getUser/testuser1/details

localhost:8080/getUser/testuser2/details

localhost:8080/getUser/testuser3/details

localhost:8080/getUser/testuser4/details

Thanks



via samsudh

No comments:

Post a Comment