# Manage API rate limits

Stacksync is a data synchronization tool that ensures **real-time syncing between your Apps**. It optimizes data transfer by batching modifications and minimizing API calls, resulting in lower API consumption and potential cost savings. For high volumes of record updates, Stacksync scales up its workers and parallelizes processes for faster syncing.

<figure><img src="/files/fXXephSYVrh4vSeVclbO" alt=""><figcaption><p>Manage API rate limits from your Stacksync dashboard</p></figcaption></figure>

You can set rate limits to manage API calls during peak times or within specific time windows, preventing rate limit exceedance and effectively managing the load on your services. This is also useful if other services than Stacksync consume API calls on the same app so you can share your resources adequately. It's important to note that Stacksync only makes API calls when your data is updated, and when no data updates occur, no calls are made, except for a few queries in some cases.

To set rate limits for each App, [follow this detailed tutorial](/two-way-sync/connectors/setup-options/manage-api-rate-limits.md). It is recommended to use smaller scale rate limits (e.g., seconds or minutes) to ensure regular data syncing. Larger scale limits (e.g., hours or days) may result in data sync delays if sufficient credits are not available until the end of the period. Rest assured, once API credits are again available, your data will be synced without errors, it would just have taken more time 👍🏼.

{% hint style="info" %}
For optimal real-time sync performance, a range of 5 to 10 requests per second is ideal in most cases.
{% endhint %}

Changes you make to the rate limits may take up to a minute to be applied. When no data updates occur in any of your Apps, Stacksync does not query the Apps as no data transfer is needed, with only negligible exceptions. [Learn more here.](/two-way-sync/connectors/setup-options/manage-api-rate-limits.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stacksync.com/two-way-sync/features/manage-api-rate-limits.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
