You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/11 02:45:04 UTC

[GitHub] [rocketmq] cserwen commented on issue #4137: Why doesn't rocketmq send files with sendfile like Kafka?

cserwen commented on issue #4137:
URL: https://github.com/apache/rocketmq/issues/4137#issuecomment-1094487850

   我理解是这样的,RocketMQ一个CommitLog会有多个Topic的消息,服务端需要做查找过滤,也就是需要对磁盘文件读取出来的结果做加工再返回,而Kafka一个segment文件是partition级别的,不需要处理直接返回给客户端就行,所以用sendfile会更合适:-D
   
   当然,我觉得也可以进行优化和测试,看看会有什么样的提升。


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org