szetszwo commented on pull request #296:
URL: https://github.com/apache/incubator-ratis/pull/296#issuecomment-732955407
Another way is to provide a different API for transferring files, say
```
CompletableFuture<DataStreamReply> writeAsync(RandomAccessFile);
```
Then, we may use Netty DefaultFileRegion for zero-copy file transfer.
https://github.com/netty/netty/blob/4.1/example/src/main/java/io/netty/example/file/FileServerHandler.java#L53
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]