这里你只需要知道它的工作是将内存中的消息对象写入到操作系统的页缓存就可以了。
来自:01 | 日志段:保存消息文件的对象是怎么实现的?
7 人划过
有些 Response 回调逻辑要在 Response 被发送回发送方之后,才能执行,因此需要暂存在一个临时队列里面。这就是 inflightResponses 存在的意义。
来自:07 | SocketServer(上):Kafka到底是怎么应用NIO实现网络通信的?
3 人划过
Kafka 源码使用 ConcurrentNavigableMap 数据结构来保存日志段对象,就可以很轻松地利用该类提供的线程安全和各种支持排序的方法
来自:02 | 日志(上):日志究竟是如何加载日志段的?
3 人划过
*精彩内容为该课程各文章中划线次数最多的内容
编辑推荐

讲师的其他课程

包含这门课的学习路径

架构师
28门课程 151.9w人学习

后端工程师
27门课程 184.1w人学习
看过的人还看了





