Skip to content

Conversation

carodewig
Copy link
Contributor

@carodewig carodewig commented Sep 22, 2025

This PR covers a few small changes to the Redis storage layer:

  • Refactor the Redis cache API to surface more errors to callers, which will allow us to return clearer results as part of response caching
  • Correct the out-of-date doc comment for the Redis timeout - it claimed that the default was 2ms rather than 500ms
  • Set max_command_buffer_len so that the number of inflight Redis commands is bounded. This should increase the stability of the Redis client under load, as it will return Backpressure errors rather than queueing forever

I don't believe any of these changes are user-facing so have not added a changeset.


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • PR description explains the motivation for the change and relevant context for reviewing
  • PR description links appropriate GitHub/Jira tickets (creating when necessary)
  • Changeset is included for user-facing changes
  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Metrics and logs are added3 and documented
  • Tests added and passing4
    • Unit tests
    • Integration tests
    • Manual tests, as necessary

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. A lot of (if not most) features benefit from built-in observability and debug-level logs. Please read this guidance on metrics best-practices.

  4. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

@carodewig carodewig requested a review from a team as a code owner September 22, 2025 21:33
@apollo-librarian
Copy link

apollo-librarian bot commented Sep 22, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 6f26a5f0b72914b718174784
Build Logs: View logs

Copy link
Contributor

@carodewig, please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants