[ https://issues.apache.org/jira/browse/CASSANDRA-15219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520605#comment-17520605 ]
Benedict Elliott Smith commented on CASSANDRA-15219: ---------------------------------------------------- The same way we do today for uncompressed segments. You don't have to hand over the entire file, just offsets, so you can control rate and flow. > Use sendFile for streaming partial files > ---------------------------------------- > > Key: CASSANDRA-15219 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15219 > Project: Cassandra > Issue Type: Improvement > Components: Consistency/Streaming > Reporter: Benedict Elliott Smith > Assignee: Adverg Ebashinskii > Priority: Normal > Fix For: 4.x > > > In the case of compressed files, sendFile is a drop-in replacement for our > current buffered reads/writes. For uncompressed files, we probably want to > only optionally compress them for streaming, as in many cases CPU will > constrain more than the network, particularly to a local replica. In the > case that we need to compress, we can add a pipeline to the Netty handler to > compress the whole stream. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org