I am consume some API for my backend application and saving data into the database. Now, I need to send 4 API request(one for each category) and pagetion is there, response data can be 4000 records or less or more. The response schema is same for all.Now, what is the best way to consume the API and save it to the database.
example:- API :-
/getBooks/category/Thiller?start=0&end=1000
/getBooks/category/Action?start=0&end=1000
/getBooks/category/Romance?start=0&end=1000
now, Should I call this API in parallel and then save it to the database. or Should Call API one by one and save it in that order.
Aucun commentaire:
Enregistrer un commentaire