question

Andrey Skobelev avatar image
Andrey Skobelev asked

Client, server, admin sdks api

Hello! This is a follow up question for this post.

In the answer there were mentioned several apis, including Client, Server, Admin apis.
One important thing is that its not a good idea to call the Client api from custom server due to api calls limit.

I am using CSharp sdk on my server.
There are tons of namespaces and api classes.


and etc.

There are clearly defined PlayFabClientAPI, PlayFabServerAPI and PlayFabAdminAPI.

I understand that I should never call anything from PlayFabClientAPI from server.

What about PlayFabServerAPI and PlayFabAdminAPI? Is there any limit on api calls from these classes?

What about several other ***API classes? How do I understand which are for client, which are for server? Is there any docs that specify this clearly?

Or I can just treat anything not from PlayFabClientAPI as server related API?

Are others other ***API classes are just used internally from PlayFabClientAPI, PlayFabServerAPI, PlayFabAdminAPI classes and I should not consider using then directly?

sdks
sw87h.png (15.5 KiB)
qdiul.png (19.1 KiB)
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

·
Citrus Yan avatar image
Citrus Yan answered

There are no hard limits on Server/Admin APIs, you should be good when implementing & running the system described in your previous post. The other API classes you mentioned belongs to the new Entity Programming Model, compared with the classic API model (Client/Server/Admin), you will find these docs helpful:

https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/

https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/entity-api-restructure-upgrade-tutorial

Generally speaking, entity APIs are more efficient and flexible to use, and there are no global hard limits on them except several features such as Entity profile, Matchmaking, you can find them in the [Limits] page in the Game Manager:

https://developer.playfab.com/en-US/your_title_id/limits

10 |1200

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

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.