Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by John · Feb 06, 2017 at 02:48 PM · CloudScriptapis

Are there limits to cloudscript api calls in free tier?

Hi. I would like to know if there is a limit to cloudscript api calls from users in free tier

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Feb 06, 2017 at 07:21 PM

Technically, nothing can be "unlimited" regardless of what type of agreement you have with us, since there will always be a limit somewhere. In the case of Cloud Script, there are a few different ways it can be called - from the client directly, via a PlayStream action, or from Photon Realtime as a webhook. Assuming you mean directly from the client, the default free tier limit on total CPU time for any given Cloud Script call is shown on your Settings->Limits tab (currently 5 seconds). In terms of how frequently you can call a Cloud Script from the client, as long as you're waiting for the response from the previous call, you could make a few calls in sequence. But over the lifetime of the player session, the calls should average out to something like a couple per minute (per player).

Cloud Script is designed for small, lightweight logic. If what you need is more of a realtime updating system where the player is frequently updating some data, you should have a look at using a custom game server, so that you can pull all the data needed for the player session, updating the client as often as needed while updating the backend data only periodically (when key points are reached in the gameplay experience, or after a couple of minutes otherwise).

Comment

People who like this

0 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image PinkPointer · Jul 26, 2018 at 08:21 PM 0
Share

What does the current "15" limit mean from the "Number of PlayFab API requests made from a CloudScript function called by the ExecuteCloudScript API"? Is it per second? Is it per client? Is it per session?

avatar image Brendan ♦♦ PinkPointer · Jul 27, 2018 at 07:29 AM 0
Share

The limit on the number of API requests is specifically the number of Server API calls that can be made from a single Cloud Script execution pass.

avatar image Kendrick Villaruel · May 29, 2021 at 03:22 AM 0
Share

Hi, are the limits counted per player?

avatar image Brendan ♦♦ Kendrick Villaruel · May 30, 2021 at 08:45 AM 0
Share

In general, yes, though currently the Client API is limited based on the IP Address of the caller, specifically.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Having trouble using httpRequest to access PayPal API 1 Answer

    There is a problem with the certificate when using the container. 1 Answer

    How can I Remove member from Group/Clan using Cloudscript? 1 Answer

    Prevent the Users Unlink Accounts 1 Answer

    Is cloud script execution time expected to be within range of 800-1000 ms? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges