google-cloud-platformgoogle-cloud-pubsubgoogle-cloud-iot

what is the max size of payload for Pub/Sub message via Google IoT core?


I am using Google Cloud IoT core with Pub/Sub topics. I have a python script from which i am publishing data to my cloud functions via MQTT Bridge.

'/devices/{}/events/Topic'.format(device_id) #Topic

Now my question is how large the payload can be sent via MQTT? I have seen two documentations... https://cloud.google.com/pubsub/quotas & https://cloud.google.com/iot/quotas and in both the limits are quite different e.g. for Pub/Sub its 10Mb/message and for IoT is 256kb/message .. So is that means i can only send max 256 kb of payload?


Solution

  • Yes, the maximum payload size should be the smaller of the two limits, 256 KB.