Skip to content

perf: use local cache for configurations and psas (@fehmer)#7429

Merged
Miodec merged 6 commits intomasterfrom
feature/cache-configurations
Feb 2, 2026
Merged

perf: use local cache for configurations and psas (@fehmer)#7429
Miodec merged 6 commits intomasterfrom
feature/cache-configurations

Conversation

@fehmer
Copy link
Copy Markdown
Member

@fehmer fehmer commented Jan 23, 2026

Endpoints /configurations and /psas are called very often but rarely change. Introduce a local cache for both of them.

  • cache configuration for 10 minutes. This was already in place but the endpoint always fetched the live configuration
  • cache psas for one minute

@monkeytypegeorge monkeytypegeorge added the backend Server stuff label Jan 23, 2026
@fehmer fehmer marked this pull request as draft January 23, 2026 08:51
@fehmer fehmer force-pushed the feature/cache-configurations branch from 377f092 to a03f76c Compare January 23, 2026 09:14
@fehmer fehmer marked this pull request as ready for review January 23, 2026 09:14
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label Jan 23, 2026
@Miodec Miodec merged commit 2b6c50c into master Feb 2, 2026
13 checks passed
@Miodec Miodec deleted the feature/cache-configurations branch February 2, 2026 14:28
IliyaZinoviev pushed a commit to IliyaZinoviev/monkeytype that referenced this pull request Apr 24, 2026
…pegame#7429)

Endpoints /configurations and /psas are called very often but rarely
change. Introduce a local cache for both of them.

- cache configuration for 10 minutes. This was already in place but the
endpoint always fetched the live configuration
- cache psas for one minute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants