Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,612
Community Members
 
Community Events
184
Community Groups

How do I deal with API rate limiting?

We have about 6000 pages to create: I'm currently doing tests in batches of about 100 to get our format right etc. I noticed the other day the rate went from a page a second to a page every 6 seconds or so... not sure if that was load (US traffic waking up towards my AU evening) or auto rate limiting

I saw somewhere that we should do our own rate limiting to 1 request every 10 seconds otherwise we might be banned !?

What's the most up to date advice on this, are there any exceptions made, or should we just make sure to implement the 10 second rate to avoid issues?

1 answer

1 vote
Neil
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 07, 2023

Hi @SiDawg There is some developer documentation on rate limiting on Confluence Cloud APIs:

https://developer.atlassian.com/cloud/confluence/rate-limiting/

You'll find info on limit detection, retries, and request backoff strategies.

Thanks. It's a little confusing: is the rate limit enforced? I read somewhere else that its up to me to ensure i dont send more than 10 requests a minute, but then the page you sent suggests I can send what i like but the API may respond with 429 error?

I guess i'm wanting to primarily make sure I won't be banned: I'm happy to add rate limiting wait code if i need to, but if the API will response with an error that is preferable then it will run "full speed" unless it has a reason not to and I can leave it for your server to tell me?

Neil
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 07, 2023

Hi @SiDawg The cost-based rate limiting (as discussed on that page I shared) has been published for some time now (at least a few years). If you're being rate limited, you should be seeing 429 responses. 

Is this your own app/client making calls against your own instance, or are you making an abundance of calls across many instances (ex: you have an app in the Marketplace)? 

As for getting banned.. there definitely isn't anything published on the page about that. That being said, if your app is sending requests that might resemble the magnitude of a denial service attack, I would imagine that mitigation measures might kick in. 

So yes, I would recommend that your app has a strategy for when it encounters 429 errors.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events