how to merge 2 payloads in real time

0

I have 2 iot devices and i want to process data from them in realtime, so assume there are 2 devices and each of them are sending some data, so before i put that data into ec2 for processing i want the data from these 2 devices to be merged into one, can i use api gateway or should i use something else?, and how do i go about doing it?

  • Could you explain what is the need for "merging" the data from the 2 devices? Are there only 2 devices, or can there be N devices? If merging is needed, what is the merging criteria?

2 Answers
0

Is the data from the devices being published to the same Topic as 1 payload or two? You may have to send the payload to TimeStream and write lambda to do the ETL and send the data to EC2.

AWS
Bahram
answered 9 months ago
  • I don't think I understand, but if you are taking about ros topic then, it's the same topic

0

Hi. Are your devices using AWS IoT Core? I think Bahram was referring to MQTT topics in the context of devices connecting to AWS IoT Core.

I'm a little unclear whether you have precisely 2 devices, or whether you need to group data in pairs more generally. And also a little unclear on the timing of messages from your devices, and hence how you would pair them up. With the disclaimers out of the way, Device -> AWS IoT Core -> AWS IoT Core rules engine -> SQS -> EC2 is likely a solid candidate.

profile pictureAWS
EXPERT
Greg_B
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions