apache / apache/rocketmq-spring

Is it needed to separate producer and consumer in RocketMQAutoConfiguration

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

Description

**FEATURE REQUEST**

![image](https://user-images.githubusercontent.com/8457847/110303755-bac49700-8035-11eb-8bcd-adef76e0a952.png)

`RocketMQAutoConfiguration` automatically imports `ListenerContainerConfiguration` and will start all consumers' listening threads after springboot starts.
But in a normal project, I actually need to separate the producer and the consumer. They may be placed in two projects separately. At present, I have not found that the official code has the function of turning on/off the listener uniformly.

`RocketMQAutoConfiguration` 自动 import 了 `ListenerContainerConfiguration` 在 springboot 启动后会开启所有消费者的监听线程,
但是在正常项目中, 其实我是需要把 producer 和 consumer 分开的,可能是分别放在两个项目里面, 目前没有发现官方的代码里有统一开启/关闭 listener 的功能

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.