apache / apache/rocketmq-spring

v5 版本中如何让消息在同一个服务的多个实例中广播呢?

Open
#588 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
943
PR merge metrics
No merged PRs in 30d

Description

The issue tracker is **ONLY** used for bug report and feature request.

Any question or RocketMQ proposal please use our [mailing lists](http://rocketmq.apache.org/about/contact/).

**FEATURE REQUEST**

1. Please describe the feature you are requesting.
在 spring cloud 项目中启动多个实例,希望消息能在多个实例中广播消费

2. Provide any additional detail on your proposed use case for this feature.
项目中用到了 websocket 推送,然后借助消息队列实现消息转发

```txt
A Producer -> sendMessage -> RocketMQ -> A PushConsumer 接受 -> websocket 发送到页面
-> B PushConsumer 接受 -> websocket 发送到页面
```
> A、B 为同一个服务的多个实例

我尝试按照文档使用多个 consumerGroup 但是会报错
![image](https://github.com/apache/rocketmq-spring/assets/21048878/65bbd426-9d04-4b7e-9a32-64b58f2975e6)

---

使用的包为 rocketmq-v5-client-spring-boot-starter-2.2.4-SNAPSHOT

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.