Hey,
i am creatating mobile game using unity, and i cant understund what is the diffrent betwenn PlayFabClientApi and PlayFabServerApi, why do i need them both? why use the one on the other?
thanks
The Client API is for use from client devices - the player. The Server API is for use in Cloud Script or custom game servers (dedicated servers). If you compare the two API sets, you'll see there are some significant differences between them. In specific though, the Server API is for you to use in server-authoritative logic, so that you can update data/stats for players only after making sure the values are legitimate, read and make use of data you don't want to expose to the player (for privacy reasons, or to protect the integrity and security of the game), etc.
hey,
Thanks brendan for the fast answer.
what puzzle games are doing today? how they update the current player level? they use dedicated server?
the clientAPI is not secure?
Most are using Cloud Script to do these updates. I'm not sure what you mean concerning whether the Client API is "secure". All API calls to the service use SSL, which helps to protect against man-in-the-middle attacks. But the local client is a general-purpose computing device. You cannot prevent the local client from altering the data being sent to the service (the Client API calls), or from just modifying the local memory to set whatever values the user wants to. That's why it's important to consider server-authoritative logic as the only true source of information about the player's progress.
4 People are following this question.