question

mdiminsky avatar image
mdiminsky asked

Advantages of using Client-Side API calls vs Server-Side API calls?

I noticed several methods available in play-fab client-side api calls like updating a user--(UpdateUserData) are also available in server-side. For example:

https://api.playfab.com/documentation/client/method/UpdateUserData

and

https://api.playfab.com/documentation/server/method/UpdateUserData

If I can call both versions of these methods in Node SDK does it make a difference? Isn't server-side generally safer? Why would anyone want to ever use the client-side call? Thank you!

apissdks
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

·
brendan avatar image
brendan answered

Yes, making the calls from server-side is more secure, since you can have server authoritative logic. However, we support a wide range of languages and platforms, many of which are largely client-side, like mobile applications. So, we provide as many client-side API calls as makes sense (though you can disable any or all of them via your title's permission policies).

1 comment
10 |1200

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

mdiminsky avatar image mdiminsky commented ·

Thank you :)

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.