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

Q - Zero copying support #2333

Open
eyal-eitan opened this issue Oct 20, 2024 · 0 comments
Open

Q - Zero copying support #2333

eyal-eitan opened this issue Oct 20, 2024 · 0 comments

Comments

@eyal-eitan
Copy link

Description

Hi,
We are writing a high throughput service which should expect commands via Kafka,
add some logic and push the message payload to http clients in a reliable way...
What we would have liked to do (in order to reduce allocation...GC) is to get the raw byte[] from the consumer (Kafka Message<>) and provide it to the Http Request of HttpClient (no copying/allocations).
What we see currently is the IDeserializer is providing ReadOnlySpan but since we cannot take ownership on the buffer it seems we would need to copy the buffer data...
Is there another technique to accomplish the zero-copying?

Thanks in advance.

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