I am looking for advice basically on users idea of how to achieve the following. Lets Say
I add 2 apis to my application.
I make use of the following two functions from each api respectively
So I have two different datasources which:
- have over 100K results
- have integrated paging (i.e. TotalPages, TotalRecords, CurrentPage, RecordsPerPage)
Now my question is, or rather my search for others take on how they would approach this:
I will retrieve both resultsets based on CurrentPage, RecordsPerPage on two separate threads to speed up collection. I then need to combine these two resultsets into 1.
I know there will be tons of theories on this including design patterns, state management, unified data structures. But I am just curious as to others take on how they would approach this.