半兽人 发表于: 2015-03-10   最后更新时间: 2019-11-23 14:33:05  
{{totalSubscript}} 订阅,16762 游览

The network layer is a fairly straight-forward NIO server, and will not be described in great detail. The sendfile implementation is done by giving the MessageSet interface a writeTo method. This allows the file-backed message set to use the more efficient transferTo implementation instead of an in-process buffered write. The threading model is a single acceptor thread and N processor threads which handle a fixed number of connections each. This design has been pretty thoroughly tested elsewhere and found to be simple to implement and fast. The protocol is kept quite simple to allow for future implementation of clients in other languages.

您需要解锁本帖隐藏内容请: 点击这里

上一条: kafka接口设计
下一条: kafka消息格式