Currently, the temperature and humidity is sent to RabbitMQ as separate messages (i.e. one message for temperature data and one message for humidity data). While this works, it does create problems for writing to the database. Ideally, they can just be combined into one message. This would reduce the total amount of calls to RabbitMQ, and will potentially simplify data processing.
A better schema for the published messages could be:
Currently, the temperature and humidity is sent to RabbitMQ as separate messages (i.e. one message for temperature data and one message for humidity data). While this works, it does create problems for writing to the database. Ideally, they can just be combined into one message. This would reduce the total amount of calls to RabbitMQ, and will potentially simplify data processing.
A better schema for the published messages could be: