Present data from different sources in realtime
Posted on 2013-11-26
I have several data sources which let's say (for simplification reasons) that send the data like the following way:
source, id, key, value
I have about 200 such data sources which all send these kind of data when I request them. When the data arrive I need to do some calculations. For example I need to map each of their IDs with my IDs in the database.
What would be the best practice for that? Shall I keep all data in memory and do the calculations there? Currently I use curl to get data with php and then perform all the calculations once all the sources have completed sending data, which is too slow.