Skip to content

Conversation

misaka
Copy link
Contributor

@misaka misaka commented Aug 11, 2025

In the INT environment, and potentially the production one too, there will be a rate limit imposed by the Imms API's PDS link-up. Until they either increase that rate limit, or stop doing asynchronous PDS lookups, we need to ensure we take up only a small portion of their 5 tps limit.

We don't have tests around rate limiting (that I can find), so we're relying on manual testing for this change.

Jira-Issue: MAV-1739

@misaka misaka requested a review from a team as a code owner August 11, 2025 10:22
@misaka misaka added the performance Improving performance label Aug 11, 2025
@misaka misaka added this to the v2.17.0 milestone Aug 11, 2025
@misaka misaka changed the title Make rate limiting configurable Rate limit Immunisations API Aug 11, 2025
misaka added 2 commits August 11, 2025 12:32
This is necessary as we'll be adding rate limiting for another NHS API
service, the Immunisations API, and it has a different rate limit than
PDS.

Jira-Issue: MAV-1739
In the INT environment, and potentially the production one too, there
will be a rate limit imposed by the Imms API's PDS link-up. Until they
either increase that rate limit, or stop doing asynchronous PDS lookups,
we need to ensure we take up only a small portion of their 5 tps limit.

Jira-Issue: MAV-1739
@misaka misaka force-pushed the imms-api-rate-limit branch from f285ad6 to 4beabcb Compare August 11, 2025 11:33
@tvararu tvararu temporarily deployed to mavis-pr-4233 August 11, 2025 11:33 Inactive
Copy link

@misaka misaka merged commit c738fdd into next Aug 11, 2025
13 checks passed
@misaka misaka deleted the imms-api-rate-limit branch August 11, 2025 15:57
MartinVanIJcken pushed a commit that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Improving performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants