queueing API requests in Campaign workflow to not clog Target Delivery API | Community
Skip to main content
Michael_Soprano
Level 10
August 22, 2024
Solved

queueing API requests in Campaign workflow to not clog Target Delivery API

  • August 22, 2024
  • 1 reply
  • 590 views

I have workflow like that.

In JS node I write the request to Target delivery API. Then it responds with JSON with products for a particular user. 

Delivery API has such a constraint. Do you have any ideas how I can workaround this in Campaign workflow? I am a little newbie to Campaign that's why I am asking:

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShashankNigam02

@michael_soprano Implementation of Rate-Limiting or Throttling within Campaign is not straightforward, and it is recommended to have it via a Middleware or another application.

 

However, there is a JS method provided by Adobe Campaign JS-API like sleep() which can used to suspend processing, but getting the right milliseconds delay is difficult to achieve. You may give it a try.

1 reply

ShashankNigam02
Adobe Employee
ShashankNigam02Adobe EmployeeAccepted solution
Adobe Employee
August 22, 2024

@michael_soprano Implementation of Rate-Limiting or Throttling within Campaign is not straightforward, and it is recommended to have it via a Middleware or another application.

 

However, there is a JS method provided by Adobe Campaign JS-API like sleep() which can used to suspend processing, but getting the right milliseconds delay is difficult to achieve. You may give it a try.