I need to trigger the function on the basis of the topic, that if the user is subscribed to the topic or the messages being sent on different topics so that I can Identify the topic the message is sent to and also the message being sent over that topic. Messages are coming from the hardware devices into the broker over the MQTT topic. And I want to invoke lambda on the basis of the topic and the message payoad.
On the basis of this, I need to manage the further functionality in the database and backend.