Datastore Budget Replenish Rate?

My question is pretty simple, at what rate does DataStore budget replenishes and how long should I yield before checking if there is enough budget again?

Is there a formula I can use to calculate how long code should yield before retrying?

Every 1 minute seems absurdly long.

I’m aware of this, it’s not what I’m asking of

Use Case
local function getBudgetCount(requestType)
		return DataStoreService:GetRequestBudgetForRequestType(requestType)
	end

local function waitForBudget(requestType)
		while getBudgetCount(requestType) == 0 do
			wait(1) -- how long should I yield here?
		end
	end

API:

Hey @buildthomas, I figured you are the perfect person to ask since you have extensive knowledge of DataStore!

This article should have everything you need in the budgeting section:

2 Likes