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 /
  • General Discussion /
avatar image
Question by Koen · Jul 18, 2017 at 02:51 PM · CloudScriptlimits

What happens when you're exceeding the CloudScript execution time limit too often?

Is it a problem if a CloudScript execution time limit is exceeded too often? We're developing a game which retrieves data from an external party (via scheduled tasks). But it can happen that - for whatever reason - the external party's server is a little slow, which results in exceeding the execution time limit. Is it a problem if this happens every now and then (it's not called by clients, only tasks) or do we need to up the limit (pretty) high in case of a (sometimes) slow external party server?

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 · Jul 18, 2017 at 10:02 PM

When you hit the limit of the Cloud Script execution time, the script exits at that point, which could potentially leave your logic in a state where you've taken some actions, but not others. So it's always advisable to do good testing on your handlers to check their runtimes, so that you make sure you're not getting too close to the limit.

Now, in the case of a dependency on a third-party, you're not the first person to run into this. If you can't make the third-party call from the client, and moving to using custom game servers isn't an option, we can work with you on moving your title to use a private vertical of the Cloud Script logic servers, as an addendum to a pro or enterprise tier contract.

Comment

People who like this

0 Show 2 · 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 Koen · Jul 19, 2017 at 07:47 AM 0
Share

Thanks for the reply. Is it for you (PlayFab) a problem if now and then a CloudScript exceeds the limit (in the sense of actions will be taken if exceeded too often)? Or is it only disadvantageous for us (since our logic could break).

avatar image Brendan ♦♦ Koen · Jul 19, 2017 at 08:02 AM 0
Share

Obviously, the more calls a title makes per player, the more costly the title is for us to sustain. In the case of the free tier, we have few options to assist you if things go wrong, since with zero revenue for those titles, we aren't able to provide much individual resource time to them (not to mention the fact that we're contractually obligated to make sure our pro/enterprise folks are unblocked first). That's specifically why the free tier has no service level agreement or private support - the resource time that would be required.

Also, the more titles that do this, the more we would have to restrict the free tier, potentially to the point of having to remove it, if we found that there were too many titles in that tier hammering the service with requests.

So short answer - if you're hitting the limit more than rarely, you should really be checking to see why, and working to fix the issue.

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    CloudScript .js file size limits,Cloud Script Javascript code limit 1 Answer

    Questions about PlayFab security and limits with Azure Functions 2 Answers

    CloudScript execution time includes server warmup 1 Answer

    Cloud script triggered action time limit exceeded in one specific time 1 Answer

    Size LIMIT to the return message of a CloudScript function can return to the client? (and vice versa) 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