Hey, I was reading some posts here on the DevForum and I saw some old posts talking about issues with DataStore and open-sources APIs like DataStore2 to replace the Roblox systems.
Is it safe to use DataStore in 2024 or should I stick with one of these APIs? Any recommendations?
It is safe to use Roblox datastores in 2024. These other systems like DataStore2 and ProfileService still use the Roblox DataStoreService (I’m pretty sure), but they just take care of things that a lot of people struggle with or don’t know how to do.
They are completely safe, you just need to use them right. This involves things like:
- Not allowing the client direct access, for example accessing it whenever a remote is fired
- Only saving and loading when necessary, and staying within the data request budget
- Ensuring requests have enough time to be processed
- Error handling and retry logic for failed saves
- Things like data versioning to prevent outdated data from being saved
- Things like session locking to prevent other servers from writing data when data is already in use
- Ensuring data does not save when data loading fails
There’s a few more, so in summary quite a lot you should implement for a secure data store system. Like I said before, people recommend community modules because they take care of a lot of this for you.
I don’t mean to be rude to anyone, but most of the data store code I see on this forum isn’t that great. It lacks these features. People find their data systems failing and then blame it on Roblox, when most of the time it’s their code that causes it.
I hope this helps!
They are completely safe, you just need to use them right. This involves things like:
Oh I see
I don’t mean to be rude to anyone, but most of the data store code I see on this forum isn’t that great. It lacks these features.
Yeah I can relate, I’ve seen some absurd things too
Thanks, I will have a look on DataStore2 to use it