starter for disruptor
Spring Boot Starter For Disruptor
1、事件推送
a、配置简单,少量配置即可实现异步事件推送
2、事件处理
a、配置简单,少量配置即可实现异步事件处理
b、组件实现了基于责任链的事件处理实现;可实现对具备不同 事件规则 ruleExpression 的事件对象进行专责处理;就如 Filter,该组件实现的Handler采用了同样的原理;
通过这种责任链的机制,很好的实现了事件的分类异步处理;比如消息队列的消费端需要快速的消费各类消息,且每种处理实现都不相同;这时候就需要用到事件对象的分类异步处理。
<dependency>
<groupId>com.github.hiwepy</groupId>>
<artifactId>disruptor-spring-boot-starter</artifactId>
<version>${project.version}</version>
</dependency>
https://github.com/vindell/spring-boot-starter-samples/tree/master/spring-boot-sample-disruptor
Jeebiz 技术社区 微信公共号、小程序,欢迎关注反馈意见和一起交流,关注公众号回复「Jeebiz」拉你入群。
公共号 | 小程序 |
---|---|