Skip to content

Resource Gates ​

A resource gate controls how many requests of a given kind can run at the same time for a Dataset. Imports and exports share processing capacity with shoppers' searches and recommendations. An import may take longer when it sends one batch at a time, but this helps keep the storefront responsive.

For each Dataset, Relewise recommends sending requests that use the same gate one at a time. In your integration, avoid sending those requests in parallel. Wait for each request to finish before sending the next. If several workers or scheduled jobs use the same gate for the same Dataset, we recommend coordinating them so only one request is in flight at a time.

Entity updates and administrative actions ​

Each tracking endpoint in the table has its own gate. For example, you can send a TrackProductUpdateRequest while a TrackContentUpdateRequest is running for the same Dataset. Each name is the final part of a POST /{datasetId}/v1/{requestName} URL.

EntityUpdate requestAdministrative action request
ProductTrackProductUpdateRequestTrackProductAdministrativeActionRequest
ContentTrackContentUpdateRequestTrackContentAdministrativeActionRequest
BrandTrackBrandUpdateRequestTrackBrandAdministrativeActionRequest
CompanyTrackCompanyUpdateRequestTrackCompanyAdministrativeActionRequest
Product CategoryTrackProductCategoryUpdateRequestTrackProductCategoryAdministrativeActionRequest
Content CategoryTrackContentCategoryUpdateRequestTrackContentCategoryAdministrativeActionRequest
User—TrackUserAdministrativeActionRequest

Batched tracking ​

A BatchedTrackingRequest uses a resource gate when it contains more than 10 items, or when any item is an update or administrative action listed above. All gated batches for a Dataset use the same batch gate. If one batch contains Product updates and another contains Content updates, send them one at a time.

For example, a batch of 10 Product Views can run without this gate. A batch of 11 Product Views goes through the gate, as does a batch containing just one ProductUpdate. For an import, keep related updates in batches and wait for each batch to finish before sending the next.

Product performance ​

ProductPerformanceRequest uses a resource gate when analyzing Product or Variant performance. If your export spans several pages, fetch one page at a time.

Handling HTTP 429 ​

A request can wait briefly for capacity. If the gate cannot admit it, Relewise returns 429 Too Many Requests before processing the request. The Retry-After response header tells you how many seconds to wait. For example, with Retry-After: 2, wait at least 2 seconds before retrying the rejected batch or page.

Once the rejected request succeeds, continue with the next batch or page. If you see repeated rejections, check whether overlapping jobs use the same gate for the same Dataset.

Don't know us? Don't worry - you can find more information about us, by visiting our main page www.relewise.com