Safety and limits
What the module promises your game, and what it does when Atomo is down.
What it promises
| It never | So |
|---|---|
| Errors | Every call is guarded. Whatever it is given, nothing is thrown into your script. |
| Waits | Every call returns at once. Sending happens in the background. |
| Calls a data store | It reads and writes nothing in Roblox: no data stores, memory stores or messaging. It uses HttpService and RunService, nothing else. |
| Changes your tables | It copies what you report, and leaves your table as it was. |
| Prints a key or a save | Its messages name what happened, never a key, a player’s data or what Roblox’s errors say. |
| Runs code it is sent | Nothing Atomo answers is run. An answer is a count of what was taken. |
Each is checked by the module’s tests, against a pretend Roblox that misbehaves on purpose: arguments of every shape, 100,000 random calls, and a server that is silent, slow, wrong or hostile.
When Atomo is down or slow
- Saves wait on the server, and it tries again after 5 seconds, then less and less often, up to every 5 minutes; after half an hour away, every 10.
- At most 500 saves and 8 MB wait on each server. Past that the oldest are dropped, newest kept: a player’s newer save replaces their older one anyway.
- After 3 failures in a row it says, at most once in 10 minutes:
Atomo: can’t be reached. Saves waiting: 12. - When Atomo is back, what is waiting is sent: only the newest save of each player.
A wrong or removed key
It says Atomo: the key isn’t right, or was removed. once, keeps the saves, and tries again after a minute, then less often, up to every 10 minutes. A new key in the secret is used by servers that start after you change it.
When the server closes
It sends what is left for up to 5 seconds, then lets go. Saves your own BindToClose makes in that time go too. A server that stops without closing (a crash) loses what was waiting: the next load reports those players, and a full sync finds anything missed.
When Atomo says stop
Atomo can tell every game to stop sending. The module then sends nothing more until the server closes, and says nothing.
Limits
For each server, so that sending never competes with your game:
| What | Limit |
|---|---|
| Requests | 12 a minute at most, usually one every 7.5 seconds, 4 kept for closing. Roblox allows a server 500 a minute. |
| Each request | Up to 50 saves and 900 KB, all of one data store, 6 seconds to answer |
| Waiting | 500 saves and 8 MB |
| Copying | About 4 ms of each frame, across all reports |
| Largest save | maxSize, 1 MB unless set, 4 MB at most |
| Saves over 500 KB | One in about 5 minutes for each player, one in 10 seconds for each server |
| Data stores | 10 |
| Keys | Up to 200 characters, with up to 20 user IDs |
| Closing | 5 seconds |
Atomo also takes up to 1,200 requests, 6,000 saves and 64 MB a minute from each game, across all its servers.
What can go missing
Atomo gives way first, so a few saves can be missed. None of these changes anything in your game:
- A report made when the frame’s 4 ms are spent.
- A save over
maxSize, or a large save inside its 5 minutes. - What waited on a server that crashed, or that was over 500 saves or 8 MB.
- New players while your organisation’s storage is full: the module says
refused 3 of 50 saves: storage_full.Players already in Atomo are kept up to date. See Storage and history.
The player’s next load or save puts them right, and a full sync reads everyone again from Roblox.