I have 2 seperate systems - a document management system and a sharepoint search server.
Both systems have an api that I can use to search the data within them. Tthe same data may exist in both systems, so we much search both.
What is the most efficient way (speed is very important) to search both api's at the same time and merge the results together.
Is the following idea bad/good/slow/fast:
- user enters search terms
- the api for each system is called on it's own thread
- the results from each api is placed in a common IEnumerable class of same type
- when both threads have executed linq is used to join the 2 IEnumerable result objects together
- results are passed to view
The application is ASP.NET MVC C#.