Johnathan Brown
Johnathan Brown

Reputation: 713

Google Pub/Sub API - Maximum messages

I've created a small app which can call the Pub/Sub API via the REST reference. In the API Reference guide, it shows that the request body can have multiple messages, see the example below.

{
  "messages": [
    {
    "attributes": {
        "key": "iana.org/language_tag",
        "value": "en"
    },
    "data":  "Base64 Encoded String"
}  
,{
    "attributes": {
        "key": "iana.org/language_tag",
        "value": "en"
    },

    "data":  "Base64 Encoded String"
}  

  ]
}

For the example above, there are two base64 encoded strings being sent in one request. My question is, what is the maximum amount of data I which can be passed in one request? I've tried looking through the API Reference but I'm not able to find anything which answers my question.

Upvotes: 0

Views: 217

Answers (1)

Kamal Aboul-Hosn
Kamal Aboul-Hosn

Reputation: 17261

This information is on the quotas page: A publish request must be no larger than 10MB and contain no more than 1,000 messages.

Upvotes: 2

Related Questions