Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

高吞吐量的实现机制是什么? #52

Open
wendyqun opened this issue Oct 17, 2016 · 2 comments
Open

高吞吐量的实现机制是什么? #52

wendyqun opened this issue Oct 17, 2016 · 2 comments

Comments

@wendyqun
Copy link

对jafka的说明中有这样一条:高吞吐量:即使是低配制的硬件条件,单个Broker也能支持每秒数十万的消息吞吐。
请问高吞吐量的技术支撑是什么?nio吗?

@adyliu
Copy link
Owner

adyliu commented Oct 18, 2016

主要因为以下三个原因

  1. 消息简单,不用复杂的拆包、解包
  2. 支持消息包发送(一次发送众多消息)
    3.文件顺序存储(消息的接收和处理速度一直来与网卡速度和硬盘速度)

nio倒不是主要原因,即使bio也足够快。

@SuyuZhuang
Copy link

是不是还包括零拷贝呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants