深入理解 RocketMQ 零拷贝

深入理解 RocketMQ 零拷贝

  • 原文地址:
  • 原文作者:
  • 本文永久链接:
特别说明

当前文章内容迁移中,如有问题,请提交 issues 谢谢 ~~

参考文章

正常的数据读写,需要调用 Read 和 Write 函数。

零拷贝的关键技术

  • mmap 结合 write
  • sendFile

RocketMQ 采用的是 sendFile 结合 write

FileChannel.map(MapMode.READ_WRITE, 0, fileSize);
Prev:
深入理解 RocketMQ 存储原理
Next:
并发编程 - CAS
Contents of this article
Contents of this article