Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IBufferDistributedCache for caching HTTP requests #346

Draft
wants to merge 3 commits into
base: upgrade-net9
Choose a base branch
from

Conversation

twsouthwick
Copy link
Collaborator

@twsouthwick twsouthwick commented Dec 9, 2024

The main thing we need to cache are the HTTP calls downstream. This replaces the previous caching mechanism with an HTTP delegating handler that will cache calls to registered hosts. This uses the new IBufferDistributedCache API with the recyclable memorystream to greatly reduce allocations of new arrays (and potentially large GC collections) by pooling the buffers and not needing to new up large arrays manually.

This will greatly reduce the memory usage for caching so that it will be able to stream it better.
@twsouthwick twsouthwick changed the title Use IBufferDistributedCache for caching Use IBufferDistributedCache for caching HTTP requests Dec 10, 2024
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.

1 participant