feat(count): 引入批量消费机制优化粉丝计数处理
- 添加 BufferTrigger依赖以支持消息聚合 - 实现消息批量消费逻辑,提升处理效率 - 配置批量大小为 1000,缓存队列最大容量为50000 - 设置聚合间隔为1 秒,均衡实时性与性能 - 新增测试用例验证大量消息发送与消费流程 - 日志记录聚合消息内容,便于调试与监控
This commit is contained in:
@@ -97,6 +97,13 @@
|
||||
<artifactId>rocketmq-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 快手 Buffer Trigger -->
|
||||
<dependency>
|
||||
<groupId>com.github.phantomthief</groupId>
|
||||
<artifactId>buffer-trigger</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
Reference in New Issue
Block a user