I have a scenario to fetch a news feed. The first time I request for information it gives me a set of feeds with each feed having a feedId, the feedIds are not in a sequential order(The feedIds are jumbled withIn the set of feeds). The news feed count is limited to a fixed value. If I supply the last fetched feedId from the current set of feeds to the next request it returns me the next set of feeds and this continues. My question here is how to run this kind of problem in a multi-threaded environment?
I have tried getting the first feedID and adding a batchSize of 2000(some random size) between multiple news feed fetcher and I could see two scenarios:
Can anyone help me with a thought?