-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
QuestionQuestion or helpQuestion or help
Description
Your Question
Hi, thanks for your great work on LiteEco.
I have a question regarding database operations.
Currently, player data (such as balance) is saved and loaded synchronously, including on player quit.
This raises a potential issue when switching servers through a proxy setup (e.g., Paper/Velocity).
- Example: A player quits Server A → data is still being saved → at the same time, the player joins Server B → Server B loads old data before Server A finished saving.
- In this case, there is a risk of duplicated or inconsistent balances (e.g., money duplication).
My question:
Do you have plans to handle database save/load asynchronously, or to add safeguards (e.g., locking, queueing, Redis presence keys, etc.) to prevent this type of issue?
Thanks in advance!
Metadata
Metadata
Assignees
Labels
QuestionQuestion or helpQuestion or help