Bubble API rate limiting mechanism

Hi guys and gals,

This is more a question for support but posting it here to share the knowledge.

I understand there is a rate limit of 1000 calls per minute and wondering how the limit mechanics work, namely:

  1. If I hit up a public backend workflow I created (basically a webhook), does every call count against the rate limit? If I set a condition on the workflow and it returns false (i.e. the steps don’t execute), does it still count against the limit?

  2. Do internal calls to backend workflows count against the rate limit? I.e. when I use the action “schedule a backend workflow” from inside my app.

  3. What happens if I exceed the limit? Are the remaining calls buffered and executed in the next minute, or simply disregards the excess calls? Is there a specific server code response when that happens?

I’m not currently hitting any limits but planning ahead to understand if it will become an issue at any point.

Cheers
Rob

2 Likes

Anyone have some pointers on this? @eve @colin-bubble

For context I’m building something of an analytics script that will send data to a Bubble app API.

Hello!

These are great questions and I’ve added it to the list of documentation to update and clarify. On to the answers:

First, just to clarify the rate limit. The rate limit starts at 1,000/minute and then once on a Professional plan or above you can increase this limit. For every unit of capacity you add to your plan above 2 you’ll get an additional 1,000 requests per minute.

  1. If I set a condition on the workflow and it returns false, does it still count against the limit?

    Answer: Yes, even if the workflow doesn’t complete its execution this still counts as a call to the server.

  2. Do internal calls to backend workflows count against the rate limit?

    Answer: Nope! Scheduling workflows from within your app, as well as data triggers do not count toward this limit.

  3. What happens if I exceed the limit?

    Answer: The API call will fail with a 429 status code with a message stating the rate limit

Hope this helps!

6 Likes

Brilliant thanks Colin!

1 Like

Where can I find pricing on this?

Thanks!

Does this apply for new workload units related plans as well?