question

duartedd avatar image
duartedd asked

Saving Data simultaneously from multiple players via a function to storage tables

Hi I am wondering since there is a chance of storing data overtop if multiple function calls are called at the same time. I am wondering if a queue trigger would prevent this issue since it should add the job to the queue and so as long as i have a READ AND an then an UPDATE in the queue trigger job then i think it shouldnt have issues with data overwrite. Is this correct ? This would really only work if the queue trigger job only gets executed once the previous job is fully completed. Also This may be a question for the azure team rather then playfab since it is how the job and function gets processed rather then sent to the job queue pool

let me know thanks!

Daniel

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

·
Rick Chen avatar image
Rick Chen answered

Yes, it is correct. You can use queue trigger functions to avoid Read/Write conflicts.

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.