I have n sensors generating measurements every t minutes to their own topic as follows:
Topic_1: {timestamp: 1, measurement: 1}, {timestamp: 2, measurement: 4}, ...
Topic_2: {timestamp: 1, measurement: 5}, {timestamp: 2, measurement: 3}, ...
Topic_n: {timestamp: 1, measurement: 3}, {timestamp: 2, measurement: 5}, ...
This number of sensors is dynamic but for sake of simplicity let's assume I have 3 sensors, therefore, 3 topics getting data every t minutes.
What is the best topology for joining all measurements with the same timestamp as shown below?
{timestamp: 1, measurement: 1}
{timestamp: 1, measurement: 5} --------> {timestamp: 1, measurements: [1,5,3]}
{timestamp: 1, measurement: 3}