Limits and pricing
Functions are billed as part of your project's compute, in naira, with no charge per call. All the functions in one environment share one runtime.
2 min read
Limits
| Limit | Value |
|---|---|
| Memory | 256 MB per functions runtime |
| Longest run per call | 150 s on the Free size, 400 s on paid sizes. A longer call returns 504 |
| Code size | 20 MB per deploy |
| Name | Lower-case letters, numbers and dashes, up to 40 characters |
Pricing
There is no charge per call. Each environment's functions share one runtime, and that runtime costs the same as a web service of the same size, drawn from your balance like the rest of your project.
- Free size. It sleeps when idle and wakes on the next call, so that first call takes longer. A workspace runs functions on the Free size in one project.
- Paid sizes (
starter,pro,pro-max). The runtime stays awake and calls can run longer. Choose one on the first deploy with--tier.
Deleting a project's last function removes its runtime, so an empty project isn't billed for functions.
Not yet
- Deploying or editing code from the dashboard. Deploys come from the CLI.
- Rolling back to an older version in one click. Deploy the older code again.
- Languages other than TypeScript and JavaScript.
- A changed variable needs a redeploy before functions read it.