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

Question: Use memory pool / Lease for messages received via PubSub #2762

Open
azeno opened this issue Jul 17, 2024 · 0 comments
Open

Question: Use memory pool / Lease for messages received via PubSub #2762

azeno opened this issue Jul 17, 2024 · 0 comments

Comments

@azeno
Copy link

azeno commented Jul 17, 2024

Hi there, would it be possible to add an option/API that messages received via a subscription make use of the memory pool? We're currently evaluating a scenario where we'd receive rather large data blocks. As of now those blocks cause allocations on the LOH (MatchResult -> TryGetPubSubPayload -> AsRedisValue) which in turn leads to costly Gen2 collections.

We could probably work around it for now with StringGetLeaseAsync and read the data through some polling mechanism.

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

No branches or pull requests

1 participant