Reuse the existing business logic for processing rabitmq, and separate it as a common module
Existing rabbitmq monitoring is reserved, and Redis pub/sub monitoring is added,
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
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,在接收/发送消息时候,调用不同的模块代码