I have created an Azure function that is connected to the messaging endpoint of an IoT Hub in order to trigger the function for all incoming messages. The main purpose of this function is to decompress previously compressed messages using GZIP before they were transmitted via cellular networks.
Currently, our devices are sending data to the cloud without compression, but we are considering adding compression to reduce transmission costs. Additionally, we are utilizing Stream Analytics to analyze messages in real-time and send them to different destinations such as hubs, blobs, and tables. However, if we implement message compression, it may affect how Stream Analytics processes the messages based on their values.
I have developed the function to decompress messages and send the output to an Event Hub for further processing.
My question: If I do not output the content, will the modified messages remain in the queue until they are consumed by another application? Or will my changes be lost if I do not output the results? Furthermore, if the uncompressed message stays in the queue, can I still use Stream Analytics as it is currently configured?