Is it possible to poll an API twice a second?

This topic was automatically generated from Slack. You can find the original thread here.

Marcel Raczek : Is it possible to poll an API 2 times per second? Or are there any limitations?

Dan Goodman : Depends on the API, and on how many invocations you have. Some APIs will have rate limits that will block you, but I think you’ll run out of invocation credit really quickly if you’re on the free tier

Marcel Raczek : The API allows 2 times per second :slightly_smiling_face: But Pipedream doesn’t have any limitations besides the invocations?

Dan Goodman : As per how fast you can invoke, I believe they do have a limit, let me see if I can find it real quick

Dan Goodman : 333 invocations per day

Dan Goodman : Limits

Marcel Raczek : Yeah okay thanks. But with prof. account I will not have this issue

Dan Goodman : I believe you are correct, paid says No invocation limits

Marcel Raczek : Thanks Dan!

Dan Goodman : np

Dylan Sather (Pipedream) : do you want to poll the API every half second, all day? Or will you only be polling during certain intervals? Curious to hear more about the use case

Marcel Raczek : It is the API of an ERP system. And in this system orders are managed. When the status changes, we need that more or less in real time. The ERP system also has a webhook function, but it has a significant delay of almost a minute. That’s why the ERP provider recommended to use their API. This allows polling 2 times a second.

But with Pipedream this would cost too many invocations, so we have to think about something else :slight_smile:

Dylan Sather (Pipedream) : Thanks for the detail, very helpful. That’s unfortunate their webhooks have such a delay. Are they trying to reduce that?

Dylan Sather (Pipedream) : Do they provide any other interface (e.g. WebSocket, SSE) to listen for changes?

Marcel Raczek : They are not really willing to change anything regarding the webhook. They only offer their REST API as an alternative :disappointed:

Dylan Sather (Pipedream) : I’m honestly quite surprised they’d choose not to make the webhooks faster in favor of having every client hammer their system with requests!

Dylan Sather (Pipedream) : But we’ve seen stranger issues with other providers / APIs :slightly_smiling_face: