Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Is there a RESPONSE limit?

Discussion in 'Cloud Code' started by lsaeteurn, Feb 18, 2023.

  1. lsaeteurn

    lsaeteurn

    Joined:
    Jan 26, 2023
    Posts:
    90
    I'm returning a large list of items and was wondering if I should split my data into smaller chunks if there was a limit to the size of the response. If this number is several MBs then it's not needed, but if it's just 50 KB, then I may need to.
     
    Last edited: Feb 18, 2023
  2. MileyUnity

    MileyUnity

    Unity Technologies

    Joined:
    Jan 3, 2020
    Posts:
    92
    Hey there, I've had a look at our systems and asked around internally as well and we don't currently impose any limit on the response size of a request though this may change in the future (in which case it will be in MBs so your use-case won't be affected too much)

    There is the 10 second execution limit per script though that could in turn also limit how much data you can return from Cloud Code but this should easily be able to handle several MBs
     
    lsaeteurn likes this.
  3. lsaeteurn

    lsaeteurn

    Joined:
    Jan 26, 2023
    Posts:
    90
    Awesome! thanks for the clear response.