Hello Kishan,
welcome to this moderated Azure community forum.
The maximum size of one message is 256KB.
The term 'message' could be confusing because Microsoft mentions counting messages per day for the maximum throughput.
The maximum throughput is counted in chunks of 4KB (of 0.5 KB for the free tier) so a 256KB message is essentially 64 chunks.
A 6KB message is counted as 2 chunks.
Technically you could send more if you use compression.
The alternatives to send larger messages mentioned by @Walter Coan are valid alternatives.
so:
- Will a higher tier allow for a larger size? No. Maximum size is 256KB.
- Would not an edge module break it down to smaller chunks before sending up? or Yes, but the chunks is just for the message count administration. The maximum size stays 256KB.
- Is there a solution / recommendation to break down a message which IoT Hub can put back on the cloud side? Compression increases the possible message size. You need to send the message in multiple parts yourself (eg. with a correlation ID and part number)
- I saw another article which said that if we send a large message, the daily limits will be considered based on 4KB chunks. Does that mean a 256KB message will be considered as 65 thousand message rather than a single message when accounted against the daily limits of the tier? 256 devices by 4 is 64 chunks thus 64 'messages' are counted for the daily quota. So, larger message require more units for a given tier.
What I have seen with customers is that a subset of the telemetry is sent to the cloud for remote monitoring via filtering/aggregation on the edge. If all messages are needed in the cloud, separate (custom) logic is used to collect batches of messages (say 10.000 messages or 10 minutes of messages) and send them over a separate channel (eg. the blob storage solution on the edge).
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.