--- read_when: "Diagnose throttling, inspect budgets, or plan request and storage usage" last_reviewed: 2026-10-17 --- # Limits, quotas, throttling, and error codes **Primary source:** https://create.roblox.com/docs/cloud-services/data-stores/error-codes-and-limits (contains the exhaustive tables this document summarizes and expands with usage advice). Open Cloud Data Stores v2 rate limits live on the same page under Access limits (shared with the Engine API). Legacy Open Cloud v1 endpoint limits remain on https://create.roblox.com/docs/cloud/guides/data-stores/throttling and apply only to `/datastores/v1/` and `/ordered-data-stores/v1/` paths after July 29, 2026. ## Request and storage limits Data stores are a shared cloud resource. Roblox protects the service (and your experience) with multiple layers of limits: - Experience-level quotas (scale with total concurrent users across all servers of the universe). **Game servers and Open Cloud share this budget**. External traffic can throttle in-experience usage and vice versa. - Per-game-server limits (you can raise these with `DataStoreService:SetRateLimitForRequestType` during server initialization). - Per-key throttling in some cases. - Hard queue sizes (when queues of 30 fill, requests are dropped with specific throttle errors). Exceeding causes dropped requests, errors in the 301+ range (or the more modern *Throttled variants), and eventual player-visible failures (lost progress, failed purchases, broken leaderboards). **Always** monitor with the Observability dashboard and Data Stores Manager. Use `GetRequestBudgetForRequestType` before bursts and implement waiting/retry logic. ## Experience-level limits (formulas) These are shared across the entire experience (in-engine APIs **and** Open Cloud v2 Data Store endpoints for the matching request type). ### Standard data stores - **Read** (GetAsync, GetVersionAsync, GetVersionAtTimeAsync, read portion of UpdateAsync; Open Cloud Get Data Store Entry): 300 + concurrentUsers × 40 per minute - **Write** (SetAsync, IncrementAsync, write portion of UpdateAsync; Open Cloud Create/Update/Increment): 300 + concurrentUsers × 20 per minute - **List** (ListDataStoresAsync, ListKeysAsync, ListVersionsAsync; Open Cloud List Data Stores / Entries / Revisions): 300 + concurrentUsers × 2 per minute - **Remove** (RemoveAsync; Open Cloud Delete Data Store Entry / Delete Data Store / Undelete Data Store): 300 + concurrentUsers × 40 per minute ### Ordered data stores - Read (Get + `BatchGetAsync` + read of Update; Open Cloud Get Ordered Data Store Entry): 300 + concurrentUsers × 40. Each key in a `BatchGetAsync(keys)` call counts as one read (N keys = N reads) - Write (Set/Increment + write of Update; Open Cloud Create/Update/Increment): 300 + concurrentUsers × 20 - List (GetSortedAsync; Open Cloud List Ordered Data Store Entries): 300 + concurrentUsers × 2 - Remove (RemoveAsync; Open Cloud Delete Ordered Data Store Entry): 300 + concurrentUsers × 40 **Important:** UpdateAsync always consumes **both** a read and a write budget for the relevant category. ### Controlling the shared budget - **Game servers:** use `SetRateLimitForRequestType` + `GetRequestBudgetForRequestType` so individual servers do not exhaust the experience pool. - **Open Cloud (external callers):** apply your own limiter (simple fixed spacing of `60 / desired_rpm` seconds, or a leaky-bucket). Official docs include Node.js timeout and leaky-bucket samples on the error-codes page. ## Server-level limits (configurable) Default (if you never call SetRateLimitForRequestType): **Standard data stores:** - StandardRead (GetAsync, GetVersion*, read portion of UpdateAsync): 60 + numPlayers × 40 - StandardWrite (SetAsync, IncrementAsync, write portion of UpdateAsync): 60 + numPlayers × 40 - StandardList (ListKeysAsync, ListVersionsAsync, ListDataStoresAsync): 5 + numPlayers × 2 - StandardRemove: 60 + numPlayers × 40 **Ordered data stores** (defaults differ; write/remove are much tighter): - OrderedRead: 60 + numPlayers × 40: covers `GetAsync`, `BatchGetAsync` (N keys = N reads), and the read portion of `UpdateAsync` - OrderedWrite: **30 + numPlayers × 5** - OrderedList (GetSortedAsync): 5 + numPlayers × 2: **note:** `GetRequestBudgetForRequestType(Enum.DataStoreRequestType.OrderedList)` always returns `0`, so do not rely on budget inspection for this type. - OrderedRemove: **30 + numPlayers × 5** Note: the `RemoveVersionAsync` `DataStoreRequestType` enum entry is deprecated in the official limits table; prefer versioning recovery workflows in versioning-metadata-recovery.md over relying on that budget category. You can (and should for migrations or high-traffic servers) call **once per request type early in server startup**: ```lua local DSS = game:GetService("DataStoreService") DSS:SetRateLimitForRequestType(Enum.DataStoreRequestType.StandardRead, 1000, 0) -- example aggressive for migration DSS:SetRateLimitForRequestType(Enum.DataStoreRequestType.StandardWrite, 2000, 0) -- etc. See constraints per type in the class reference and error-codes page. ``` The formula the service uses after your call: rateLimit = baseLimit + (perPlayerLimit * currentNumPlayers) **Studio Run mode note:** Requests made in Studio Run mode use a separate set of static limits that may be lower than those configured with `SetRateLimitForRequestType`. For realistic rate-limit testing, use Studio Team Create or a live test environment rather than Run mode. There are documented upper/lower bounds per request type for the base and perPlayer arguments. Legacy request types such as `GetSortedAsync` are constrained to small defaults (base [0,5], perPlayer [0,2]); the modern v2 `Standard*` and `Ordered*` categories accept much larger values (base up to 10000, perPlayer up to 200 as of this writing). `UpdateAsync` cannot be configured with this API. ## Budget inspection API `DataStoreService:GetRequestBudgetForRequestType(Enum.DataStoreRequestType.StandardRead)` etc. Returns the remaining requests the current server can still make in the current minute before hitting the configured limit. **Important exception:** For `Enum.DataStoreRequestType.OrderedList`, the API always returns `0` even though requests still consume quota. Do not wait on this budget or use it to gate `GetSortedAsync` calls. Common pattern in heavy loops (migration, bulk processing): ```lua local function waitForBudget(requestType) while DSS:GetRequestBudgetForRequestType(requestType) <= 0 do task.wait(1) end end ``` Then call waitForBudget before each operation in a batch. ## Listing pagination example Both `DataStoreService:ListDataStoresAsync(prefix?, pageSize?, cursor?)` and `DataStore:ListKeysAsync(prefix?, pageSize?, cursor?, excludeDeleted?)` return `DataStoreListingPages`. Iterate with `GetCurrentPage()` + `AdvanceToNextPageAsync()`, and stop when `IsFinished` is true. ```lua local function listAllKeys(store, prefix) local all = {} local success, pages = pcall(function() return store:ListKeysAsync(prefix, 50) end) if not success then warn("ListKeysAsync failed:", pages) return all end while true do for _, entry in ipairs(pages:GetCurrentPage()) do table.insert(all, entry.KeyName) end if pages.IsFinished then break end local ok = pcall(function() pages:AdvanceToNextPageAsync() end) if not ok then break end end return all end ``` Use the same pattern for `DataStoreService:ListDataStoresAsync`. List calls consume `StandardList` budget. ## Queues and hard drops Each category has an internal queue of size 30. Requests are processed in order. When the queue is full, new requests are **dropped** with throttle errors (the classic 301 GetAsyncThrottle, 302 SetAsyncThrottle, 304 UpdateAsyncThrottle / TransformThrottle, 305 GetSortedThrottle, etc.). Even if a request is accepted into the queue, extreme load can still result in later throttling at the experience or key level. ## Per-key throughput limits In addition to request-count budgets, every individual key is subject to throughput limits based on the serialized bytes read/written over the last 60 seconds. Roblox rounds each request up to the next kilobyte. - **Read:** 25 MB per minute per key - **Write:** 4 MB per minute per key Exceeding these manifests as `DatastoreThrottled` (data store-level) or `KeyThrottled` (key-level) errors. Large profiles, frequent full-object reads/writes, or saving big tables on Heartbeat are common causes. Mitigate by shrinking objects, caching reads, batching deltas, or using MemoryStores for hot transient data. ## Error codes and handling From the official table (study the complete page for every variant): **Client-side / validation errors (1xx):** - 101 KeyNameEmpty - 102 KeyNameLimit (50 char max) - 103/104 ValueNotAllowed / CantStoreValue (bad type returned from transform or non-serializable) - 105 ValueTooLarge (serialized size limit; preview with HttpService:JSONEncode) - 106/107 various OrderedDataStore GetSorted param errors (pageSize 1-100, min/max integers, min <= max) **Throttle / queue errors (3xx):** - 301 GetAsyncThrottle (and equivalents for Set, Increment, Update/Transform, GetSorted, Remove) - These mean "queue was full when we tried to accept your request." **Shutdown / access errors (4xx):** - 401/402 DataModel or LuaWebService inaccessible during shutdown. - 403 StudioAccessToApisNotAllowed (a Studio session attempted backend access without the experience's Studio-access setting). Enable that access only against dedicated test data, not a production datastore. - 404/5xx various internal/corruption signals. Reads may retry with bounds; an invoked write remains ambiguous until reconciled. **Newer experience/server throttled errors (the *Throttled family):** Hundreds of variants such as: - StandardReadExperienceThrottled / StandardWriteExperienceThrottled / StandardListExperienceThrottled / StandardRemoveExperienceThrottled - Same for Ordered* - GameServerThrottled versions (per-server) - Also GetVersionAsyncThrottle, ListKeysAsyncThrottle, ListVersionsAsyncThrottle, and the legacy `RemoveVersionAsyncThrottle`; the underlying `RemoveVersionAsync` API is deprecated. When you see any *Throttled, back off. Check budget. Consider raising your server rate limits (if you control them). Reduce frequency of operations. Use MemoryStores for hot paths. **Server-side errors (returned inside some failures):** - DatastoreDeleted, DatastoreThrottled, InternalServerError, KeyThrottled, KeyNotFound, Invalid* various, etc. - "No pages to advance to" when calling AdvanceToNextPageAsync on the last page. **Metadata / attribute errors (5xx range in some listings):** - AttributeSizeTooLarge, UserIdLimitExceeded, AttributeFormatError (userIds must be numbers; metadata must be table). **Handling strategy (always):** 1. pcall around every call. 2. Inspect the error string or code for the specific number/name. 3. For transient read failures: retry with bounded exponential backoff + jitter. 4. After an invoked write error, return `unknown` and immediately attempt a fresh `GetAsync` with `UseCache = false`. Replay only if the complete operation is declared idempotent; never blindly replay `IncrementAsync`. 5. For a request rejected before invocation or permanent validation errors, return `rejected`, log clearly, and do not retry. 6. For leaderboards or sorted pages, be prepared for "IsFinished" and handle the final page gracefully. See the full error-codes page for the gigantic tables and the exact messages. ## Storage quota (separate from request quotas) Calculated from lifetime unique users of the experience. Visible in Data Stores Manager as "Total Size" vs "Storage Limit". **Formula:** `Total latest-version storage limit = 500 MB + (1 MB × lifetime user count)` A lifetime user is any user who has joined the experience at least once. Storage usage is measured using the **compressed size** of the latest version of each key. Data stores compress before storage. Do **not** pre-compress values yourself; that burns CPU and can reduce the effectiveness of built-in compression (and future schema-based optimizations). Only the latest version of each key counts toward this limit; deleted keys and superseded versions (still accessible through version APIs during retention) do not count. Data stores marked for deletion via Open Cloud continue to count during their 30-day processing period. Exceeding → estimated monthly overage costs shown. Can lead to operational pain. Mitigation (best-practices): - Fewer data stores. - Larger cohesive objects per key instead of many small keys. - Store uncompressed serializable tables; let Roblox compress. - Delete test/temporary/seasonal data promptly (Manager "Mark for Deletion" or Batch Processor / Open Cloud). - Use MemoryStores for anything that can expire. - Monitor the Storage Usage Bytes chart in the observability dashboard. - Use versioning instead of creating new keys for every historical snapshot. - Store player data under per-user keys rather than per-data-store. ## Observability dashboard charts - Storage Usage Bytes (current vs limit) - Request Count by API (per-minute breakdowns of SetAsync, GetSortedAsync, etc.) - Request Count by Status (200 OK + all the error families) - Request by API × Status - Read / Write / List / Remove Request Type Quota Usage (% against future limits) - Filterable by Standard vs Ordered Recent 3 minutes may be incomplete. Supports custom time ranges (up to 30 days). ## Budget planning - Call SetRateLimitForRequestType **once per type during server initialization**, never in hot paths. - For migration scripts that touch thousands of keys, dramatically raise the relevant read/write/list/remove limits, wait for budgets, and process page-by-page with careful error handling. - Leaderboard GetSortedAsync page iteration consumes list budget at the page-size rate. - Use the Data Stores Manager for human inspection and one-off reverts/deletes. - Set up notifications for quota approach/exceed. - Regularly review the dashboard for anomalies (sudden spikes often indicate a bug such as saving on every Heartbeat or per-frame). Understanding these limits and ambiguous outcomes is necessary, but not sufficient, for a reliable persistence system; load tests, integration tests, reconciliation, and observability are still required.