一、添加依赖 SpringBoot 项目如果要与 Disruptor 进行整合十分简单,只需要在 pom 文件中引入 disruptor 依赖即可: <dependency> <groupId>com.lmax</groupId> <artifactId>disruptor</artifactId> <version>3.4. … 继续阅读
高性能队列:Disruptor基本用法 (二)
回复
一、添加依赖 SpringBoot 项目如果要与 Disruptor 进行整合十分简单,只需要在 pom 文件中引入 disruptor 依赖即可: <dependency> <groupId>com.lmax</groupId> <artifactId>disruptor</artifactId> <version>3.4. … 继续阅读
最近看了一些关于Disruptor的介绍,觉得这个新的消息队列非常厉害,单机性能就非常高。于是搜索并整理了一些资料,寻找往后可能使用的场景。 Disruptor 介绍 Disruptor 是LMX开源出来的java编写的一个并发消息处理器,在队列中一边生产者放入消息,另外一边消费者并行取出处理,其核心是根据现代CPU硬件缓存特点发明不同于通用LinkedList或Queue的新型数据结构RingB … 继续阅读