Can I do this (parallel consuming json reponse) and which data structure can I use the best RRS feed

  • Question

  • User-275943262 posted


    I want to try to make a website about paintings in Web Api.

    Now I have found out that I need to do this :

    1) first request to the api to get the ids of the paintings.

    2) Get the ids out of the json request.

    3) Use the ids to consume a second call to the api to get more info about the paiting.

    4) Get the info that I need out of 3)

    5) Use a 3th call to the api to get the url where a image can be found.

    6) Get the url out of 5

    Can I make this idea work.

    Make 1 and 2 workable.  As soon as I get the first id , use it to make step 3 - 6 work.

    so a lot of data is recieved in parallel so the user does not have to wait  till a page is schown on the browser.

    And a second question is : Which data structure can I use the best to store the data of 10 paintings.

    Tuesday, January 3, 2017 1:03 PM

All replies

  • User-2057865890 posted

    Hi Roelofw,

    Batching is a web API feature that allows a customer to pack several API requests and send them to the web API service in one HTTP request and receive a single HTTP response with the response to all their requests.

    reference: https://forums.asp.net/t/2085875.aspx

    Best Regards,


    Wednesday, January 4, 2017 5:50 AM