question

Ozan Yilmaz avatar image
Ozan Yilmaz asked

Can I return long JSON from Cloudscript?

Hello,

Is there any limit for returning a JSON from cloudscript? If so, does it affect the bill? I want to return a json that has 12 key-value pairs.

Also, does combining some key-value pairs (nested JSON) have any effect on this?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, Azure Functions Cloud Script returns a max of 64 KB. If you need more than that, the recommendation would be to write it to Azure Blob or S3, and return a URL. Also, please bear in mind that the calls within the script to read data from the service will be accumulating meter spin on the relevant meters. So, if you're reading player profiles in the script, that would hit the Profile Read meter.

But no, nested JSON isn't relevant - just the total size.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

houchi.admin avatar image houchi.admin commented ·

Hi @Brendan

I would like to enquiry a follow-up question.

If we upgrade to a premium or an enterprise plan, can we increase the maximum size in the response of Azure Functions?

I look forward to your reply.

Eric Wei

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.