course-discovery icon indicating copy to clipboard operation
course-discovery copied to clipboard

fix: increase the default throttle rate for enterprise users (POC)

Open adamstankiewicz opened this issue 1 year ago • 0 comments

The frontend-app-learner-portal-enterprise MFE makes requests to several API endpoints within course-discovery, e.g. to serve metadata about courses, programs, course recommendations, and course reviews. However, enterprise users are frequently rate limited by the default throttle rate of 100/hour (i.e., N = 2.45k requests rate limited in the past 1 week from this MFE).

This PR proposes a (POC) solution for increasing the default throttle rate if the authenticated user is an enterprise user, as determined by the authenticated user's roles in their decoded JWT cookie.

adamstankiewicz avatar Jul 24 '24 16:07 adamstankiewicz