#Practical API limits - player characters

1 messages · Page 1 of 1 (latest)

solid forge
#

Hello,

What are the limits and things to consider, related to players characters?
Is it a valid approach to use characters as data containers?

For example, unclaimed rewards can be stored in a dedicated character.
For convenience, say, unlocked skills, would be stored as items in another dedicated character.

weary stratus
#

Check the 'Limits' page under your ittle setting to see the specific limits for different apis and objects. I've attached a screenshot from one of my titles of the limits you're probably going to want to think about

Also see https://learn.microsoft.com/en-us/gaming/playfab/live-service-management/service-gateway/throttling/what-is-throttling

Finally, understand how your usage is going to get metered. Larger objects are often more costly both in egress and at rest. Make sure you account for those costs as you scale up to more players.

PlayFab offers a lot of options for data storage related to entities, depending on your exact needs you might find its more efficient to mix a few of them up. Keep in mind what this all actually means for your call pattern. Will you need to read a bunch of characters all at once? How often? Are there some data values you need frequently, and some that you only read once per session? Etc.

solid forge
weary stratus
#

It doesn't have to be! If you have a pretty good idea of what a play session of your game will look like, you can make some assumptions and get a pretty decent estimate of what calls you'll need to support it. From there it's just a little bit of math to estimate your usage over a month.

Alternatively, you can do a practical test at any phase of development to see how usage changes over time. Set up a new player on your game, play what would be an average game session, and download your daily api usage reports the next day.

solid forge
weary stratus
#

Limits specify who they apply to. So when calling through client api's you'll usually see per player limits that look something like 10 profile calls per 15 seconds or something of that form. That prevents individual users from spamming your game.

When you call with a server api using the title entity there are much higher title level limits.

For example, here's the client limit for get player profile which says any particular player may call no more than 20 times in 2 minutes.

And then through the server version of that api, the title level entity has a limit to call up to 10k times in 10 seconds.

solid forge