disqueue专题

NSQ源码分析(三)——disQueue

disQueue是Topic以及Channel中的内存消息满了以后,消息存放的实现方法,diskQueue实现了文件系统支持的FIFO队列,disQueue也是BackendQueue接口的实现,diskQueue在文件读写给我们提供了很好的学习示例。 BackendQueue接口 // BackendQueue represents the behavior for the secondar