Batch Saving


I have implemented a new saving process on the server to improving  the speed and efficiency when handling multiple updates. Previously, to make sure user updates are properly saved, each request is put to a queue, then processed individually, with an average save time of 3 seconds per update. If the user is at the 8th queue, the total wait time could reach up to 15 seconds.

This setup worked at the time the centralized server went up and the player count was low. Today, the average count is up-to 50 players online daily and even reached ๐Ÿ’ฏโ€ผ๏ธ (a new peak record!). At this point, the old setup was too slow for most users.

With the new batch-saving method, updates are grouped into batches of 8 and processed together. This reduces the overall save time to just 3 seconds per batch, drastically cutting down on delays and improving system responsiveness. The wait time might not be that much but the last in queue would definitely feel this change.

This is just the first step toward a smoother and more optimized experience. Additional changes will be added soon to reinforce this new update.

Comments

Log in with itch.io to leave a comment.

(+1)

๐Ÿ‘๐Ÿป๐Ÿ‘๐Ÿป๐Ÿ‘๐Ÿป

(+1)

power 

(+1)

Lets go!