Best way to go about a global shop implementation?

Thought about adding a global shop to my game that refreshes every day. The simplest implementation I thought of was performing a check every few seconds or so to determine if a new shop should be generated (probably would store the initial time the shop was created in the data store object to determine this)

And if so, update the existing data store entry to contain the updated shop.

However, I just wondered if race conditions were possible here. e.g: other servers are performing the same task, and as a result desync occurs.

Any ideas regarding this? Thanks

This post may help you out. How to Make Server-Synced Daily Shops As for a desync, there could be though I doubt it would be noticeable so I wouldn’t worry about it.

2 Likes