# Velo: About Backend Quotas

Source: https://support.wix.com/en/article/velo-about-backend-quotas (updated 2024-12-26)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

> **Note** This article deals with backend request quotas. There is a separate article for [data quotas](https://support.wix.com/en/article/velo-about-data-quotas).

Wix places quotas on requests to backend code on your site. These quotas apply to the following cases:

* Calls to [web modules](https://support.wix.com/en/article/velo-web-modules-calling-backend-code-from-the-frontend) from your frontend code
* [Router](https://support.wix.com/en/article/velo-creating-a-router) hooks
* Calling [HTTP functions](https://support.wix.com/en/article/velo-exposing-a-site-api-with-http-functions)

If backend requests on your site are not behaving as expected, your site may be exceeding one of the quotas. Use the [monitoring dashboard](https://support.wix.com/en/article/velo-working-with-the-monitoring-dashboard) to identify which requests are failing, and which quota is involved.

### Quota Overview

| Name | Limit | Can it be increased? |
| --- | --- | --- |
| [Requests per minute](https://support.wix.com/en/article/velo-about-backend-quotas#requests-per-minute-rpm) | 5000 / minute | Yes |
| [Time](https://support.wix.com/en/article/velo-about-backend-quotas#time) | 14 seconds / request | No |

## Requests Per Minute (RPM)

Wix allows you to make up to 7000 backend requests per minute (RPM) on premium sites, and 5000 requests on free sites. If your site exceeds the quota, any additional requests within a 1-minute window are blocked and you receive a 429 response code. For each throttled request, this error message appears in your [site log](https://support.wix.com/en/article/velo-about-wix-logs):

`/backend/<fileName>.js(w)/<functionName> was throttled because your site exceeded the maximum number of backend requests per minute.`

The failed request also appears on your site’s [monitoring dashboard](https://support.wix.com/en/article/velo-working-with-the-monitoring-dashboard#understand-the-dashboard).

### What can I do?

The error message above indicates that you’re sending too many requests to your backend code. You can try to reduce your RPM and prevent the error using the following methods:

* **Batch your requests**  
 Batch multiple round trips (backend requests) into one. Make sure not to batch time-consuming requests together as there's also a [time limit](https://support.wix.com/en/article/velo-about-backend-quotas#time) for backend requests.

**See an example**

Instead of calling a series of backend functions from your frontend code, like this:

  
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/11fda387-da5a-430a-ada3-46def885b67f/2022/01/01/b9e101b3-bbec-4374-a3d2-9b967506cf03/d67f2229-b6e7-4c78-83d3-cf42eec8d843.png) 

  
 You can batch the requests together in the backend and make one call to the batch function from the frontend, like this:  
  
**Frontend code**   
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/11fda387-da5a-430a-ada3-46def885b67f/2022/01/01/3877c116-0589-45b3-bf4d-f99a8168ddfa/093aafee-0ac6-45be-ba84-98001ca9832d.png) 

  
**Backend code** 

![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/11fda387-da5a-430a-ada3-46def885b67f/2022/01/01/c0b33c90-49fb-4dac-9aa6-fa193b8f3bf7/e723fbc4-9b59-4a1d-977e-404278575dad.png)

* **Upgrade to premium**  
If you are a free user, [upgrade to premium](https://support.wix.com/en/article/upgrading-your-site-to-premium-3066683) and increase your request limit to 7000 per minute.
* **Contact support**  
If you are a premium user, [contact support](https://support.wix.com/en/article/velo-about-backend-quotas#contact-support) to ask for more resources.

## Time

Wix allows web modules called from the frontend, HTTP functions, and router hooks to run for up to 14 seconds. This quota applies to both free and premium sites. Any of these methods that take longer than 14 seconds receives a 504 response code. Note that after 14 seconds the code might still execute, but the connection to the client is closed so the results do not appear in the frontend. This error message appears in your [site log](https://support.wix.com/en/article/velo-about-wix-logs):

`/backend/<fileName>.js(w)/<functionName> timed out because it exceeded the maximum execution time.`

The failed request also appears on your site’s [monitoring dashboard](https://support.wix.com/en/article/velo-working-with-the-monitoring-dashboard#understand-the-dashboard).

### What can I do?

The error message above indicates that the requests to your backend code are taking too long. You can try to reduce the running time of your code using the following methods:

* **Identify parts of your code that are running for too long**  
 Identify the parts of your code that are taking too long to run, and optimize them to improve performance. You can do this by including console logs before and after the code you want to test, and then checking to see how long it takes to run.

**See an example**

To test your code’s running time using console logs, do the following:

1. In your backend code, add [console.time()](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) before calling a function and [console.timeEnd()](https://developer.mozilla.org/en-US/docs/Web/API/Console/timeEnd) after the call.
2. Open the [**Site Events**](https://support.wix.com/en/article/velo-viewing-live-site-monitoring-events) log.
3. Use [Functional Testing](https://support.wix.com/en/article/velo-functional-testing-in-the-backend) to trigger your backend code.
4. Check the log to see how long it took your function to run.

  
 For example:

  
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/11fda387-da5a-430a-ada3-46def885b67f/2022/01/01/ca3285fa-bc13-42be-811c-d304f6c0df1b/30bb9ba5-bb92-4d77-b4fb-6b6369a38475.png) 

  
 The results appear in your **Site Events** log:

  
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/11fda387-da5a-430a-ada3-46def885b67f/2022/01/01/95fb6ee8-f12b-4764-9f95-09aed6ba25e7/02319b66-272f-4932-8165-4031bac9b10b.png)

* **Check your 3rd-party APIs**  
If you are using 3rd-party APIs on your site, make sure they are not too slow. For example, if you notice an API call to a 3rd-party is taking a few seconds to run, break it into smaller calls or see if you can upgrade your 3rd-party account to improve performance.
* **Process data in chunks**  
 If you are running a slow process or loading a large amount of data, either [use pagination](https://support.wix.com/en/article/cms-adding-and-setting-up-a-pagination-bar) or [process your data in chunks](https://support.wix.com/en/article/velo-best-practices-for-improving-performance-in-wix-sites-with-data). Make sure not to create too many requests, as there is also a [quota on requests per minute](https://support.wix.com/en/article/velo-about-backend-quotas#requests-per-minute-rpm).
* **Avoid repetition**  
 Avoid repeating large database requests or complex calculations. If you can, [cache the result](https://support.wix.com/en/article/site-performance-caching-pages-to-optimize-loading-speed) or [aggregate database queries](https://support.wix.com/en/article/velo-working-with-aggregations-in-the-data-api).
* **Optimize query times**  
 If you’re querying a large data collection, you might want to consider adding an index to optimize query times. To do so, [contact support](https://support.wix.com/en/article/velo-about-backend-quotas#contact-support).

## Contact Support

If your site is exceeding one of the quotas, you can [contact Wix Customer Care](https://www.wix.com/contact) to ask for more resources.
