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 sten · Aug 19, 2020 at 05:29 PM · Player Inventorylimits

Frequent updates to user inventory

I'm building a single player game in which the user will gain and consume many items during a short time, possibly 50 different items in a minute or more. Granting and consuming them will work by server side logic, as the items will have a small relation to real life money.

As I understand there are several limits to the amount of server requests that can be made - I would like to know if PlayFab is a feasible solution for me to use for this game. Also, if it is, I guess the correct approach would be to use a custom game server, not cloud scripts?

Comment

People who like this

0 Show 1
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 SethDu ♦ · Aug 20, 2020 at 02:15 AM 0
Share

May I ask how do you handle the granting and consuming behavior? ConsumeItem API only allows one item per API call. Your scenario only works when the items are granted or revoked within one call. I believe 50 API calls within a minute will easily result in throttling.

However, in the common scenario, inventory items with such frequent changes should use stackable items, which can be modified the remaining uses via ModifyItemUses API and it can be done on Cloud Script. If it is the case, I believe it won't exceed the limit easily and you may also add an anti-cheat verification part before the grants.

If you have any other specific needs, we will also recommend hosting an external database server to handle frequent writes, for example, Redis.

0 Replies

· Add your reply
  • Sort: 

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

    Player file limit 1 Answer

    Minify data sent from Azure Functions - Cloudscript too large 1 Answer

    Stackable items count as multiple items in inventory? 1 Answer

    Question about the character system limits 1 Answer

    Can PlayFab be use to create player economy 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