Articles in this section

Manage connection concurrency and rate limits

Every application limits how many API requests it accepts, whether that's a number of requests at once or a number per minute, hour, or day. A connection's concurrency settings control how many requests integrator.io sends to the application at the same time, so you can move data as fast as the application allows without triggering rate limit errors. This article explains how concurrency works on a connection, how to set it, and how to use several connections to share or divide an application's limit.

Prerequisites: To change concurrency settings, you need Manage or Administer permissions. With Monitor permissions, you can view the settings but not change them.

How connections process requests

Each connection handles its records and requests in the order they arrive. The Concurrency level sets how many of them run at the same time. For example, if your ERP allows 25 API requests at once, set the ERP connection's concurrency level to 25 to import orders as fast as the ERP accepts them.

Wherever connections are listed, such as Flow builder's Connections list or Resources > Connections, the Queue size column shows how many records and requests are waiting for each connection.

A slot is held for as long as its request runs. With a concurrency level of 6 and one long-running export, 5 slots remain for other work, whether that's more exports or quick record imports.

When requests run in parallel, two updates to the same record can finish out of order. To keep updates to the same record in order, see Configure the Concurrency ID lock template.

The highest concurrency level you can set on one connection depends on your Celigo edition. See Celigo platform editions. To go higher, create more connections to the same application, as described in Divide flows across connections.

Set the concurrency for a connection

Before you choose a value, check the application's API documentation for its rate limits and the limit for your account tier. If the application allows one request per minute and your concurrency level is 3, your flows will hit rate limit errors when they run at volume.

Open the connection, and then expand Advanced. What you set depends on Auto-recover rate limit errors:

  • Auto-recover rate limit errors turned on (the default for new connections) — Enter a Target concurrency level, the most requests the connection sends at once. When the application returns rate limit errors, integrator.io lowers the concurrency automatically to recover. Concurrency level is read-only and shows the value in use. For how the recovery works, see Resolve errors automatically or manually.
  • Auto-recover rate limit errors turned off — Target concurrency level doesn't appear. Enter the Concurrency level directly.

The setting applies to every flow that uses the connection.

Advanced section of a connection with Auto-recover rate limit errors turned on and Target concurrency level set.

Burst mode

If you leave the concurrency level empty, the connection runs in burst mode and sends requests as fast as possible, with very high concurrency. With Auto-recover rate limit errors turned on, burst mode sets the target concurrency level to 25.

Burst mode applies to HTTP imports only, not to exports or lookups:

Step How records are processed
HTTP import in burst mode One page at a time; records within the page in parallel, up to 100 at once
Lookups and imports with a concurrency level Several pages in parallel, up to the concurrency level; records within each page one at a time

Some APIs handle burst mode well. Others reject a high volume of requests at once, so use a concurrency level with those.

Share one limit across several connections

Teams often need separate connections to the same application, for example, so the IT team can use administrator credentials while the ecommerce team uses a restricted API role. Each connection has its own concurrency level, so together they can exceed the application's limit.

To keep them within one limit, set the concurrency level on one connection and have the others borrow it. All requests from the connections then share that one limit.

For example, to keep connections A, B, and C at no more than 2 requests at once:

  1. Open connection A, set Concurrency level to 2, and then save.
  2. Open connection B, set Borrow concurrency from to connection A, and then save.
  3. Open connection C, set Borrow concurrency from to connection A, and then save.

Diagram of connections B and C borrowing concurrency from connection A, which has a concurrency level of 2.

Divide flows across connections

To keep urgent data moving during busy periods, create two or more connections to the same application and give each one its own concurrency level. For example, if your ERP allows 25 requests at once:

  • A high-priority connection with a concurrency level of 20 for orders and customer-facing flows.
  • A low-priority connection with a concurrency level of 5 for back-office flows, such as product or item syncs.

After the busy period, adjust the two levels to match the new load. Assign each flow step to a connection as described in Change or replace a connection.

Some applications set different limits per endpoint, or count requests per day, hour, or minute instead of at once. Combine separate connections, concurrency levels, and borrowed concurrency to match whatever limits your application uses.