Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message sending and consumption, adding the Redis pub/sub mode #107

Open
iSoftStoneGroup opened this issue Dec 1, 2022 · 1 comment
Open

Comments

@iSoftStoneGroup
Copy link
Owner

No description provided.

@biubiuget
Copy link
Contributor

biubiuget commented Dec 2, 2022

  1. Reuse the existing business logic for processing rabitmq, and separate it as a common module
  2. Existing rabbitmq monitoring is reserved, and Redis pub/sub monitoring is added,
  3. Add a switch in the configuration file, and select to enable the Redis/Rabbitmq message module
    Finally, in the platform, two entries, Redis/Rabbitmq, can be reserved. The user can choose which way to use
  4. Call different module codes when receiving/sending messages according to the Redis/Rabbitmq mode selected by the user

1.将现有处理rabbitmq的业务逻辑,分离出来,当作公共模块
2.现有的rabbitmq监听保留,增加redis pub/sub监听,
3.在配置文件中增加开关,选择开启redis/rabbitmq消息模块,listen那个地方加个开关判断,false就直接return close,关闭listen
最终在平台中,可以保留两个入口,redis/rabbitmq,由用户自己选择用哪种方式
4.根据用户选择的方式redis/rabbitmq,在接收/发送消息时候,调用不同的模块代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants