question

squigglyo avatar image
squigglyo asked

Any downside to using CloudScript over API?

Ive currently set up my CloudScript with a Save function.

This save function takes the same data the PlayFabEntityAPI.SetObjects would take, however my function will return a time stamp so I can get the server time anytime a save is performed.

So my question is:

Is there any downside to sending the data to the cloud script to perform the saving or will it still perform as fast/efficiently?

handlers.SaveData = function(args, context){
  var objects = args.entityData;


  entity.SetObjects(
  {
    	Entity: args.Entity,
    	Objects: objects
  });
  
  return {Time: "00:00:00"};
}

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

·
pfnathan avatar image
pfnathan answered

The only downside is that, it will be marginally slower, but probably not noticeable.

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.