question

mark-2 avatar image
mark-2 asked

Advantages of CloudScript over Calling JavaScript from Node.js

I am exploring using Node.js for the game server side and then using the PlayFab Node SDK and Client API (user will login against Node and then call code will call LoginWithCustomID) to call PlayFab and external APIs. What advantages would there be for the Node.js code to call a CloudScript function? What is available in CloudScript that wouldn't be available to the Node.js code? PlayFab videos have talked about client-side hacking, do I not need to be concerned with that since the Client API will be called from the server?

apissdksCloudScript
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

A server that you own, and which the player does not have direct access to (apart from sending messages from the client) can be used to make calls to PlayFab using the Server API, but there's also nothing wrong with it using the Client API to proxy things for the client. Since a custom game server (written in any language) has access to the Server API, it can do everything Cloud Script can do and more, since it's not limited by CPU time.

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.