Hello PlayFab team,
I have some questions about the new price.
1. CloudScript has an average new price of $ 0.2 / million for calls.
I understand that this is Cloudscript of PlayFab. But if I use Azure Function, besides the cost for Azure Function, do I have to pay for PlayFab when I generate an Azure Function call from the Client?
2. Webhooks, Scheduled Tasks And Rules of Automation how priced. I do not see updates to its price.
Thank you.
Answer by SethDu · Apr 20, 2020 at 08:37 AM
CloudScript executions include ExecuteFunction
API calls, actions & rules, and scheduled tasks. Total executions are metered based on the total number of these CloudScript executions that are processed by PlayFab. You may see the details on https://docs.microsoft.com/en-us/gaming/playfab/features/pricing/meters/meters.
For more information about these executions, see Server-Side Cloud Script - Execution Function, Actions & Rules, and Scheduled Tasks.
In terms of Webhooks, Scheduled Tasks And Rules of Automation, please navigate to [Game Manager] -> [title settings] -> [limits] for more information
Thanks for your information.
I want to ask one more thing. I noticed that instructions to call ExecuteFunction from the Client should be limited to 1-2 times per minute. My client calls ExecuteFunction to Azure Function about 5 times per minute, does it affect PlayFab and cause any restrictions?
I don't find any specific limit for ExecuteFunction API call frequency. It should have the same limit as other client API calls. Otherwise, it depends on the contents inside the functions, for example execution time. In a word, even though the recommended scenario is that reduce the frequency of client API, I don't think call Azure function 5 times per minutes will have any bad influence on PlayFab service, since now PlayFab is using calculation gigabyte seconds and amount of executions for measuring usage.
Does this mean that calling cloudscript ExecuteFunction will incur playfab cloudscript costs, plus azure function execution costs? Even if the cloudscript in question was in Azure?
Meaning... do you pay twice for every cloudscript execution if you are using azure functions and not vanilla cloudscript?
No, they will share the same resource and won't pay twice.
@SethDu But how does MS know that my Azure Functions are being used by PlayFab, and that I'm not calling them from another client? I take it then when they see it's a request from PlayFab, they don't bill separately for the Azure Function call then?