So I am taking a look at the cloudscript pricing. Here the pricing is based on total execution + execution time. Straight forward and similar to other serverless, but here is what I don't understand. In the limits I see a 25 playfab API limit + 1m byte cloud script limit.
How are these factored in the billing per invocation of cloud script? Are playfab api requests billed when called from cloudscript? How about the size of the cloud script?
The reason I ask:
We have a custom cloudscript to upgrade player equipment (set some custom data). There is a cost associated with the upgrade (<item_level, upgrade_cost>. Previously we stored this in our dynamodb table (to share between client and server). With playfab it seems the right place would be in title data.
So if cloudscript calls playfab to get the upgrade cost, that is 1 api call + some execution time.
However, another option is to just hard code this data into the cloudscript.js (we generated this js file so the values can be updated on new builds easily). This would save 1 api call and execution time for the trade off of a slightly larger cloudscript.js file.