• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Developer Community SDK Questions
e

eLead

started a topic almost 5 years ago
Answered

Connector SDK: Impliment Rate Limiting

Most APIs require clients rate limit their calls - e.g. can make 100 times each 10 seconds. When writing code for a custom connector using an SDK there is generally a way respect these limits within the connector implementation, and so avoid having to place rate limit logic in multiple places throughout the business logic (the Recipe in Workato terminology).


A common low tech approach for single threaded integrations is to put a sleep(0.2 sec) before each API call. Not perfect, but often good enough. What is the recommended approach for achieving this within the Workato Connector SDK?


I have read this article:

https://docs.workato.com/recipes/rate-limiting.html

This approach requires all users of the connectors "self manage" retry etc ... logic within the recipe. That is a non goal here. Is this what happens with standard Workato connectors?


Best Answer
A
Alvin Ee said over 3 years ago

Our sincerest apologies for the delayed response. For this issue, the connector SDK does not support rate-limiting in the way that you have described. The reason behind this is because at the connector level, there is no way to determine how many calls have been made in a time period, and thus no way to limit that. That limit can only be implemented at recipe level. The same goes for standard Workato connectors, the only way to prevent exceeding rate limits would be to do it at the recipe level. 

Answer

Alvin Ee

said over 3 years ago

Our sincerest apologies for the delayed response. For this issue, the connector SDK does not support rate-limiting in the way that you have described. The reason behind this is because at the connector level, there is no way to determine how many calls have been made in a time period, and thus no way to limit that. That limit can only be implemented at recipe level. The same goes for standard Workato connectors, the only way to prevent exceeding rate limits would be to do it at the recipe level. 

Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count