Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i know that when the rate limit exceeds

Sunilkumar k
Contributor
June 26, 2023

Hello,

 

I want to know on when will the rate limit of jira rest api exceeds.

for example we have 10000 users using our app, how many requests can be made in 1 second or minute, how does this rate limiting exactly works ? 

 

Thanks

2 answers

1 accepted

1 vote
Answer accepted
Aron Gombas _Midori_
Community Champion
June 27, 2023

What @Ismael Jimoh mentioned is valid for Jira, here is the corresponding Confluence developer documentation: https://developer.atlassian.com/cloud/confluence/rate-limiting/

Theory: As you will see, it will return HTTP response headers with hints.

Reality: In our experience, certain REST API end-points have no rate limits, they simply fail when overloaded. Therefore I wouldn't be surprised if you don't receive those header, but your request doesn't succeed with 200...

Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2023

Hello @Aron Gombas _Midori_ 

Are you able to advise of the specific Confluence endpoints that fail 'silently' and don't return a 429 response code if the rate limit is reached?

It's good coding practice to check for 500 series errors in responses, as they often indicate you've reached a resource limit, which can easily be mistaken as a 'failure':

Some transient 5XX errors are accompanied by a Retry-After header. For example, a 503 response may be returned when a resource limit is reached. While these are not rate limit responses, they can be handled with similar logic as outlined below.

Aron Gombas _Midori_
Community Champion
June 27, 2023

My latest memory is that the content property "write" can lead to problems if you bulk-write content properties to a large number of contents in a short time window.

The REST API end-point returns with success or maybe with sporadic errors, but the database powering Confluence may have difficulties with handling the load. The expectation would be that rate limiting rejects the requests if they are overwhelming Confluence. (Or, if the rate limiter doesn't reject them, then I would assume that they could be handled without any side-effect.)

0 votes
Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2023

Hi @Sunilkumar k 

You can learn more about api limits here: https://developer.atlassian.com/cloud/jira/platform/rate-limiting/

I am hoping it answers your question.

Sunilkumar k
Contributor
June 27, 2023

Hi @Ismael Jimoh  in the document it is mentioned that the "X-RateLimit-Limit ", will be there in the headers of the response, but could'nt see that, can you please help me by saying that from where i can get X-RateLimit .

Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2023

This will be returned when you make your call. As mentioned in the document, if you get a 429 response, typically, you should see the x-ratelimit-limit.

Also note what @Aron Gombas _Midori_  mentioned. I haven’t run into many issues where I exceeded this but if this isn’t thrown all the time then it’ll be hard to say.

Suggest an answer

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

Atlassian Community Events