Game Resources/DataStore limits

So, I’m trying to make a resource-intensive game, so my first question is:
How much memory does a roblox server have?

Is there a limit per-datastore and/or all datastores in a game?
I will have to write GB of strings, maybe even TB

Is there a way to check if a datastore writeresulted in an error and then wait for the write request timer to run out.

You can upload about 4 MB of data in a datastore I think, so don’t worry too much about the limit

o wait u said tb. Why do you need that much data? There must be a better way to store it

So… If I make a datastore(s) linked to 1 player, its infinite space?

By that I mean creating datastores when older run out of space

if you save things efficiently, you should have no problems

If you want to check how clogged the request queue for saving is, use this: game:GetService(“DataStoreService”):GetRequestBudgetForRequestType(Enum.DataStoreRequestType.SetIncrementAsync)

Per key there is a limit of 4 MB like mentioned. But per actual data store it is basically infinite, so you could have infinite keys. At least until Roblox can’t afford paying for data store usage but I doubt that will happen anytime soon. But I still wouldn’t take advantage of that.

What is your use case for wanting to store gigabytes/terabytes of data??? lol

1 Like

It’s a project I don’t wanna leak.

But thanks!

Trust me, there is probably a more efficient way to save things

1 Like

1 Like

I don’t think there is. Creating multiple keys linked to 1 player is the only “efficient” way. I think

I can’t help you with efficiency unless I know what your saving

Hmm, that method is good enough for me.
Also, I have one question remaining… So, how much memory does a server have?

Do you mean how much stuff can you load in before it crashes? If you are having trouble with that you need to make your game more efficient. I don’t know the limit, but you NEED to think about optimizations before you do this.

Yes, I’m asking how much it has (mb?).
I will enforce a limit to make all things stable.

1 Like

I think that servers can handle around 500 MB

Thanks, but how much do the core things have reserved?

“core things” – please define that

Network, GUI, physics, video, sound etc.

Basically, how much memory is safe to reserve.