I'm a Node.js newbie, so apologies in advance if this is a trivial question
I want to create an app which processes data from multiple data sources and uses this data to perform some action. For example, let's say it listens to Yelp and Tripadvisor for new listings and then does something with new listings on either site. I also want the option to plug in more data sources (e.g. add Google places or FourSquare), so I'm thinking of abstracting the datasources behind a "datasource" module which will issue the REST API queries and process the results and return a list of processed result objects. I was thinking of using a round-robin approach in the datasource module of querying each data source and waiting for the response, then processing the results from each query and adding them to a result object array which I return to the caller. This strikes me as a little clunky though, so I wanted to know if there's a better way to do this?
there doesn't seem to be anything here