Run
Spending caps and alerts
You decide the most Rezin Core may ever charge you in a month, and you are told well before you get there. This page says exactly how.
Important Billing runs in test mode until public launch: nothing is charged. Everything on this page already works as described, with test invoices. Prices are on the pricing page.
The cap covers everything
A paid plan has a monthly price and allowances. Use beyond an allowance is billed per unit. The spend cap is the most that all of that extra use together may cost in a month.
- Every charge is inside it. There is no item billed outside the cap: database size, file storage, data transfer, monthly users, function runs, realtime connections and messages, emails, and extra projects are all counted against it. Your bill for a month is never more than the plan's price plus the cap.
- A new cap is $0. A company that moves to a paid plan is never charged more than the plan itself until an owner raises the cap.
- You can set any amount, or turn the cap off. Turning it off asks you to type the company's name, because from then on extra use is billed with no upper limit.
Set it under Company → Billing → Spend cap. Only an owner can.
Budgets inside the cap
Two optional, finer limits, both in dollars a month:
- A budget for one item (for example function runs) is the most that item's extra use may cost. At the budget, that item stops and everything else carries on. Extra use of that item past its budget is not billed.
- A budget for one project covers that project's share of the company's extra use. At the budget, that project's extra use stops and the company's other projects carry on.
Budgets never raise what you can be charged: the cap still applies to the total.
What happens at the cap
You choose, per company:
| Choice | What it does |
|---|---|
| Stop extra use (the default) | Whatever is over its allowance refuses more, with the error below. Things still inside their allowance are not affected. |
| Slow down | Functions keep running, at most once every ten seconds per project, and realtime is held to the number of connections the plan includes. Everything else over its allowance stops as above. Slowed use is not billed. |
In both cases:
- Nothing is deleted. Rows, files, accounts, keys and settings stay exactly as they were.
- What is already stored can still be read, through the API and in the console, so you can always get your data out.
- Everything runs normally again at once when the cap or budget is raised, the plan changes, or the month turns (midnight UTC on the 1st).
A refused request answers with status 402:
{ "error": "limit_reached", "message": "This project's company has used all the function runs its Pro plan includes this month. Nothing was deleted. ..." }
A slowed function call answers with status 429 and "error": "slowed". Both are listed on Errors.
The grace amount
Usage is counted within seconds, not instantly. So that a few seconds of counting lag cannot cut off a company that is exactly at its cap, nothing is stopped until $1.00 past the cap. That dollar is never billed: the bill stops at the cap. The Billing page shows the amount in force. A cap of $0 has no grace: extra use stops at the allowance.
Warnings, before it happens
Every owner of the company is emailed, and so is anyone the owners add under Billing → Warnings (up to five addresses):
| When | What you are told |
|---|---|
| 50%, 80% and 100% of each allowance | How much has been used of what the plan includes |
| 50%, 80% and 100% of each budget, and of the cap | How much extra use has cost against it |
| As soon as the pace so far would cross an allowance or the cap before the month ends | The day it will happen: "at this rate you reach your spending cap on 19 December" |
| The moment anything is stopped or slowed | What, and why |
| When it resumes | That it is running normally again |
- Each warning is sent once a month. Jumping past two thresholds at once sends one email, for the higher.
- Each email has a link straight to the Billing page with the cap ready to change. You still have to sign in.
- A forecast is made only once a tenth of the month has passed, so one busy first day does not raise a false alarm. Sizes (database, files) are not forecast: they do not grow at a steady pace.
- The same warnings are listed, with times, on the Billing page, and shown as a band at the top of the console and of an affected project's pages.
The Free plan gets the same 50%, 80% and 100% warnings for its firm limits, and an email two days before an unused project is paused.
What you can see at any time
Company → Billing shows, for the current month:
- each counted thing against its allowance,
- what the month has cost so far, item by item,
- where it is heading at the pace so far, and the day the cap would be reached,
- how fresh the numbers are: data transfer and realtime are counted within seconds, function runs, emails and users within the hour, sizes once a day.
The company menu at the top of the console shows the first two figures for an owner.
A promise about new charges
If Rezin Core ever adds a new kind of charge, it will be counted against the cap from the day it exists. A charge that cannot be capped will not be added.