You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: