question

Markus Skyttä avatar image
Markus Skyttä asked

Cloudscript + Azure Functions + Redis

Hi.

We are creating a global event system to our game (world bosses etc.) so we need to store data globally in a way which allows fast & concurrent updates.

We decided to go with a system where client first executes a cloudscript which triggers an Azure function that has functionality to read & write to Azure cache for Redis.

Does this seem plausible, or is there a better way you would handle this?

Thanks.

CloudScriptdata
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

·
Citrus Yan avatar image
Citrus Yan answered

One thing to note is that you can directly run Azure Functions with PlayFab without having to execute a CloudScript first in order to trigger it. That saves the overhead spent on CloudScript whose jobs are merely calling Azure Functions and waiting for their responses. Please see this section for more details on PlayFab CloudScript using Azure Functions : https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/

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.