rocketmq
rocketmq copied to clipboard
why does rocketmq uses mmap+write , rather then sendfile
I looked up some information and didn't understand why.
Compared with the large file transmission of sendfile, the small data transmission of mmap is more suitable for rocketmq. On the other hand, rocketmq is developed in java, large objects will have a certain impact on the garbage collection mechanism of jvm, so mmap is chosen