Complexity limits for app using users token

Hello,
We have an app in monday.com and are using users token that we get from oauth to make request to the monday.com graphql service, We make query for each specific users request with token we get for specific user. Does this mean each user request will be treated separately for complexity limits for our app or do we use up our apps complexity limits?

hi @yolo

Complexity limits are working on a per app basis (5M read + 5M write per minute).

1 Like

@basdebruin so if my app will have multiple (thousands) request within a minute for different users will my app be using up all the complexity limits?

hi @yolo

Correct. Complexity is per app, not per user

1 Like

Is this scalable if app’s integration recipe starts to get tens of thousands of requests per minute? is this limit based on each account and app?

It all depends how you write your app. We are using a queueing mechanism that accepts any number of request (burst mode) and then drips the request to monday at a rate the will not give you complexity limits. If you action through the monday API is just updating one item (complexity cost is 30.001) the dripping rate need to be set to (5M / 30.001) 166 request per minute to avoid complexity.

1 Like

Yea found out the actual cause was due to not using pagination in query, it seems like even if there is less item to fetch if we don’t paginate it will be treated as higher complexity.