My objective is to collect data from a webservice and deliver it to a client as a json. The problem is sometimes the query is just to big to store into an array and because of that im facing problems with memory exaustion.
To complete the query i need to send multiple requests to the webservice and as the data arrives i append it into an array.
When all the process finishes i return the array as a json to the user.
Im studying other ways of doing this:
Any more suggestions?