Skip to content

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
@twsouthwick twsouthwick force-pushed the upgrade-net9 branch 2 times, most recently from 3888081 to 79afba6 Compare February 21, 2025 19:21
Base automatically changed from upgrade-net9 to staging April 17, 2025 17:02
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