question

HitRock Games avatar image
HitRock Games asked

Can we really migrate to Economy v2?

We have 150+ million PlayFab accounts. The game contains a total of 324 items. Of these, 160 are free items. Free items drop randomly from loot boxes. An average player can have between 100 and 160 items.

The player's inventory is stored as a string in 'PlayerReadOnlyData': [s_female2c, w_christmasgun1, w_rifle2e, etc...]

We would like to use Economy v2 and create a separate entity for each game item. But ExecuteInventoryOperations API can add a maximum of 5 items per call.

Hypothetically, we can use the Queue Azure Function to migrate the account. But is it okay to make 20-30 ExecuteInventoryOperations API calls in a row for one account? After the release of the update, hundreds of thousands of players will enter the game daily. And their accounts will need to be migrated. Will there be a disaster because of this?

In-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

[Edited]With Title level entity token, the ExecuteInventoryOpreations API has a request rate limit which is more than 20-30 times per 10 seconds. Therefore, you can make 20-30 ExecuteInventoryOperations API calls in a row for one account. Also, this API also allow 10 operations one call.

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kylemc@microsoft.com avatar image kylemc@microsoft.com commented ·

Unfortunately, the per-player rate limit is much lower (even when calling with a Title token, I think). You can make 20-30 ExecuteInventoryOperations API calls, but you'll have to be prepared to do it over the course of a few minutes. We're looking at changing the scale constraints, but nothing to announce yet.

2 Likes 2 ·
HitRock Games avatar image HitRock Games kylemc@microsoft.com commented ·

I was able to send 70 requests ExecuteInventoryOperations in a row with the title token.

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha HitRock Games commented ·

That's good. The API request rate limit can meet your needs.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.